File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1928,27 +1928,25 @@ or any other color or monochrome output device which has been characterized.
1928
1928
<pre class="lang-css">
1929
1929
@media (color-gamut: srgb) {
1930
1930
.header {
1931
- background-color: rgb(8.154% 60.9704% 37.184%);
1931
+ background-color: <span class="swatch" style="--color: rgb(8.154% 60.9704% 37.184%)"></span> rgb(8.154% 60.9704% 37.184%);
1932
1932
}
1933
1933
}
1934
1934
@media print, (color-gamut: p3){
1935
1935
.header {
1936
- background-color: color(--fogra39 90% 0% 90% 0%);
1936
+ background-color: <span class="swatch oog" style="--color: rgb(0% 62.06% 34%)"></span> color(--fogra39 90% 0% 90% 0%);
1937
1937
}
1938
1938
}
1939
1939
</pre>
1940
1940
1941
- Note: This example does not use illustrative swatches, because most of the colors are outside of sRGB.
1942
-
1943
1941
This CMYK color corresponds to lab(56.596645% -58.995875 28.072154)
1944
1942
or lch(56.596645% 65.33421077211648 154.5533771086801).
1945
1943
In sRGB this would be rgb(-60.568% 62.558% 32.390%) which,
1946
1944
as the large negative red component shows,
1947
1945
is out of gamut.
1948
1946
1949
1947
Reducing the chroma until the result is in gamut
1950
- gives lch(56.596645% 51 154.5533771086801)
1951
- which is rgb(8.154% 60.9704% 37.184%)
1948
+ gives <span class="swatch" style="--color: rgb(8.154% 60.9704% 37.184%)"></span> lch(56.596645% 51 154.5533771086801)
1949
+ which is <span class="swatch" style="--color: rgb(8.154% 60.9704% 37.184%)"></span> rgb(8.154% 60.9704% 37.184%)
1952
1950
and this has been manually specified as a fallback color.
1953
1951
1954
1952
For wide gamut screens, the color is inside the display-p3 gamut
You can’t perform that action at this time.
0 commit comments