@@ -2111,7 +2111,7 @@ HSL Colors: ''hsl()'' and ''hsla()'' functions</h2>
21112111 An advantage of HSL over LCH is that,
21122112 regardless of manipulation,
21132113 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
21152115 is that hue manipulation changes the visual lightness,
21162116 and that hues are not evenly spaced apart.</p>
21172117
@@ -2132,12 +2132,12 @@ HSL Colors: ''hsl()'' and ''hsla()'' functions</h2>
21322132 Both have an HSL Lightness of 50%,
21332133 but clearly the yellow looks much lighter than the blue.
21342134
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 )''
21372137 while
21382138 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
21412141 the visual lightnesses of the two colors.
21422142 </div>
21432143
@@ -2163,18 +2163,18 @@ HSL Colors: ''hsl()'' and ''hsla()'' functions</h2>
21632163 <span class="swatch" style="--color: hsl(50 100% 50%)"></span> ''hsl(50deg 100% 50%)''
21642164 and
21652165 <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.
21672167
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)''
21702170 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
21732173 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 )''
21752175 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,
21782178 correctly reflecting the visual separation of hues.
21792179
21802180 </div>
0 commit comments