@@ -2111,7 +2111,7 @@ HSL Colors: ''hsl()'' and ''hsla()'' functions</h2>
2111
2111
An advantage of HSL over LCH is that,
2112
2112
regardless of manipulation,
2113
2113
the result always lies inside the sRGB gamut. -->
2114
- <p id="disadvantage-hsl"> A disadvantage of HSL over LCH
2114
+ <p id="disadvantage-hsl"> A disadvantage of HSL over Oklch
2115
2115
is that hue manipulation changes the visual lightness,
2116
2116
and that hues are not evenly spaced apart.</p>
2117
2117
@@ -2132,12 +2132,12 @@ HSL Colors: ''hsl()'' and ''hsla()'' functions</h2>
2132
2132
Both have an HSL Lightness of 50%,
2133
2133
but clearly the yellow looks much lighter than the blue.
2134
2134
2135
- In LCH , sRGB blue is
2136
- <span class="swatch" style="--color: blue"></span> ''lch(29.6% 131.2 301.3 )''
2135
+ In Oklch , sRGB blue is
2136
+ <span class="swatch" style="--color: blue"></span> ''oklch(0.452 0.313 264.1 )''
2137
2137
while
2138
2138
sRGB yellow is
2139
- <span class="swatch" style="--color: yellow"></span> ''lch(97.6% 94.7 99.6 )'' .
2140
- The LCH Lightnesses of 29.6% and 97.6% clearly reflect
2139
+ <span class="swatch" style="--color: yellow"></span> ''oklch(0.968 0.211 109.8 )'' .
2140
+ The Oklch Lightnesses of 0.452 and 0.968 clearly reflect
2141
2141
the visual lightnesses of the two colors.
2142
2142
</div>
2143
2143
@@ -2163,18 +2163,18 @@ HSL Colors: ''hsl()'' and ''hsla()'' functions</h2>
2163
2163
<span class="swatch" style="--color: hsl(50 100% 50%)"></span> ''hsl(50deg 100% 50%)''
2164
2164
and
2165
2165
<span class="swatch" style="--color: hsl(80 100% 50%)"></span> ''hsl(80deg 100% 50%)'' ,
2166
- which also have a hue difference of 80-50 = <strong> 30</strong> deg, look very different.
2166
+ which <em> also</em> have a hue difference of 80-50 = <strong> 30</strong> deg, look very different.
2167
2167
2168
- In LCH , the same pair of colors
2169
- <span class="swatch" style="--color: hsl(220 100% 50%)"></span> ''lch(42.1% 97.4 290 .6)''
2168
+ In Oklch , the same pair of colors
2169
+ <span class="swatch" style="--color: hsl(220 100% 50%)"></span> ''oklch(0.533 0.26 262 .6)''
2170
2170
and
2171
- <span class="swatch" style="--color: hsl(250 100% 50%)"></span> ''lch(30.8% 129.7 302.1 )''
2172
- have a hue difference of 302.1-290 .6 = <strong> 11.5 </strong> deg
2171
+ <span class="swatch" style="--color: hsl(250 100% 50%)"></span> ''oklch(0.462 0.306 268.9 )''
2172
+ have a hue difference of 268.9 - 262 .6 = <strong> 6.3 </strong> deg
2173
2173
while the second pair
2174
- <span class="swatch" style="--color: hsl(50 100% 50%)"></span> ''lch(86.8% 86.2 87.3 )''
2174
+ <span class="swatch" style="--color: hsl(50 100% 50%)"></span> ''oklch(0.882 0.181 94.24 )''
2175
2175
and
2176
- <span class="swatch" style="--color: hsl(80 100% 50%)"></span> ''lch(92.0% 98.8 119.1 )''
2177
- have a hue difference of 119.1-87.3 = <strong> 31.8 </strong> deg,
2176
+ <span class="swatch" style="--color: hsl(80 100% 50%)"></span> ''oklch(0.91 0.245 129.9 )''
2177
+ have a hue difference of 129.9 - 94.24 = <strong> 35.66 </strong> deg,
2178
2178
correctly reflecting the visual separation of hues.
2179
2179
2180
2180
</div>
0 commit comments