Re: [csswg-drafts] [css-color-4] Expected behavior around lightness 0 or 100% in Oklab/Oklch/Lab/LCH? (#10109)

> The feedback I've heard from @argyleink is that the HSV-like effect of channel clipping makes it easier to make vibrant gradients, which makes sense since the top right will always be very saturated. It does result in visible hue shifts however.

Channel clipping does not preserve lightness (at all) and also affects hue, compared to chroma reduction which preserves both.

Consider this slice of `Oklab` space at L=0.99, where colors are then constrained to `sRGB`. The naive channel clipping certainly mks vibrant colors, few or which have the lightness anywhere near 0.99. These colors will be surprising to authors. [Live demo](https://svgees.us/Color/ok-clip-lch-explorer.html).

![light-map-clip](https://github.com/w3c/csswg-drafts/assets/2506926/549fd8ae-7dc2-4716-8b39-f10c1118e9d9)

We also see a similar, but smaller, result for very dark colors (same demo)

![dark-map-clip](https://github.com/w3c/csswg-drafts/assets/2506926/f4b15d5c-dcae-4cde-b2fd-c10edc438f5e)



-- 
GitHub Notification of comment by svgeesus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10109#issuecomment-2220568791 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 10 July 2024 13:53:11 UTC