Skip to content

Commit b0e9734

Browse files
committed
[css-color-4] add lab values to example
1 parent 8392bdb commit b0e9734

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

css-color-4/Overview.bs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1796,12 +1796,17 @@ Device-independent Colors: Lab and LCH</h2>
17961796

17971797
Note: The Lightness axis in Lab and LCH should not be confused with the L axis in HSL.
17981798
For example, in HSL, the sRGB colors blue (#00F) and yellow (#FF0)
1799-
have the same value of L even though visually, blue is much darker.
1799+
have the same value of L (50%) even though visually, blue is much darker.
1800+
This is much clearer in Lab:
1801+
sRGB blue is lab(29.567% 68.298,-112.0294)
1802+
while
1803+
sRGB yellow is lab(97.607% -15.753 93.388).
18001804
In Lab, if two colors have the same measured L value,
18011805
they have identical visual lightness.
18021806
HSL and related polar RGB models were developed
18031807
in an attempt
1804-
to give similar usability benefits for RGB that LCH gave to Lab.
1808+
to give similar usability benefits for RGB that LCH gave to Lab,
1809+
but are significantly less accurate.
18051810

18061811

18071812

0 commit comments

Comments
 (0)