Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Perceptually-uniform color spaces such as CIE L*a*b* (and especially more modern alternatives, such as Oklab [1]) are better for gradients. This page has a simple demo: https://raphlinus.github.io/color/2021/01/18/oklab-critique....

This Observable notebook goes into more detail: https://observablehq.com/@mattdesl/perceptually-smooth-multi...

Gamma is more or less a poor man's perceptual color space, but I don't think it's very useful for that nowadays. There are much better options for image processing that requires perceptual uniformity (which is not everything, e.g. blurring is usually better done in linear RGB), and when you don't need that, I'm not aware of much reason to use it other than limited precision and sRGB being a ubiquitous device color space.

[1] https://bottosson.github.io/posts/oklab/



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: