@@ -511,6 +511,60 @@ The choice of mixing color space can have a large effect on the end result.
511
511
<span class="swatch oog" style="--color: rgb(72.66% 100% 0%)"></span> color(srgb -0.3387 1.0943 -0.48899)
512
512
</div>
513
513
514
+ <div class="example" id="ex-device-cmyk-mix">
515
+ ''device-cmyk()'' can be used in ''color-mix()''
516
+ but the result will depend on how the implementation
517
+ chooses to obtain a computed value.
518
+
519
+ <!-- detailed calculation is in the file
520
+ workings/device-cmyk conversion worked example.txt -->
521
+
522
+ <pre class="lang-css">
523
+ color-mix(in lab, device-cmyk(0.091777 0.043303 0.312816 0.000000) 100%, yellow);
524
+ </pre>
525
+
526
+ Since the first color is at 100%,
527
+ the second color is 0% and does not affect the mixed result in any way.
528
+ The result is thus the computed value of the first color,
529
+ in CIE Lab.
530
+
531
+ To visualize the result,
532
+ let us say that the device CMYK values
533
+ are in fact to be printed using SWOP 2006 coated.
534
+
535
+ * <span class="swatch" style="--color: rgb(98% 89% 75%)"></span>
536
+ device-cmyk(0.091777 0.043303 0.312816 0.000000) is
537
+ <span class="swatch" style="--color: rgb(98% 89% 75%)"></span>
538
+ lab(91.44% 4.142 20.52)
539
+
540
+ Suppose the implementation uses an ICC profile
541
+ to obtain ''lab()'' colors,
542
+ and in this example a FOGRA39 Coated profile is used:
543
+
544
+ * <span class="swatch" style="--color: rgb(98% 89% 75%)"></span>
545
+ device-cmyk(0.091777 0.043303 0.312816 0.000000) is
546
+ <span class="swatch" style="--color: rgb(92.81% 91.34% 75.31%)"></span>
547
+ lab(91.840596 -3.559090 20.449159)
548
+ * The deltaE 2000 between this and the original printed color
549
+ is <strong> 8.17</strong> which is clearly visible.
550
+
551
+ Now suppose another implementation uses
552
+ the naive color conversion algorithm,
553
+ giving an sRGB result.
554
+
555
+ * <span class="swatch" style="--color: rgb(98% 89% 75%)"></span>
556
+ device-cmyk(0.091777 0.043303 0.312816 0.000000) is
557
+ <span class="swatch" style="--color: rgb(90.8223% 95.6697% 68.7184%)"></span>
558
+ rgb(90.8223% 95.6697% 68.7184%)
559
+ which is
560
+ <span class="swatch" style="--color: rgb(90.8223% 95.6697% 68.7184%)"></span>
561
+ lab(94.02% -12.31 31.79)
562
+
563
+ * The deltaE 2000 between this and the original printed color
564
+ is <strong> 14.3</strong> which is very visible.
565
+
566
+ </div>
567
+
514
568
<h3 id="color-mix-with-alpha">
515
569
Effect of Non-Unity Alpha on color-mix
516
570
</h3>
0 commit comments