New alternatives to HSL and HSV that better match color perception
Good related reading: <a href="https:&#x2F;&#x2F;raphlinus.github.io&#x2F;color&#x2F;2021&#x2F;01&#x2F;18&#x2F;oklab-critique.html" rel="nofollow">https:&#x2F;&#x2F;raphlinus.github.io&#x2F;color&#x2F;2021&#x2F;01&#x2F;18&#x2F;oklab-critique....</a>, with some analysis of various colour spaces of different types, focusing especially on their behaviour in gradients, to do with interpolation.<p>My biggest complaint about perceptual colour spaces has been that they make working with colours near gamut boundaries <i>really</i> hard. For example, with #ff0 (yellow) in LCH, you can’t tweak <i>any</i> of the three parameters in <i>either</i> direction without going out of gamut (play with it at <a href="https:&#x2F;&#x2F;css.land&#x2F;lch&#x2F;" rel="nofollow">https:&#x2F;&#x2F;css.land&#x2F;lch&#x2F;</a> to get a vague idea of what I mean, though it doesn’t handle going out of gamut well). Yet such colours have plenty of practical value, and it’s a shame that many things eschew them because they’ve drunk <i>too much</i> perceptual uniformity kool-aid. Colour palettes often just don’t have any decent yellows <i>at all</i>. (To be sure, you <i>do</i> need to use such colours with care, but to remove them altogether is distressing.) For colour pickers especially, perceptual colour spaces have just been no good, because of their weird shapes and because you’re more likely to want to pick interesting colours nearer gamut bounds.<p>So I’m really glad to see this, because it’s just what I’ve been grumbling about the absence of. Thank you Björn, I continue to enjoy your work!