←back to thread

276 points samwillis | 9 comments | | HN request time: 0.204s | source | bottom
1. SirMaster ◴[] No.41081422[source]
It's probably good to start with XYZ, but we have much better colorspaces now that do a better job at correlating with our vision.

Mainly CIE 1976 L',u',v' and even more recently ICtCp from Dolby research.

replies(4): >>41081785 #>>41082463 #>>41083099 #>>41083860 #
2. refulgentis ◴[] No.41081785[source]
CAM-16. When in doubt, ask the color scientists :)
replies(1): >>41082562 #
3. contravariant ◴[] No.41082463[source]
The xyY colour space is designed such that the colours of light you get by blending two points all lie on the line between the two corresponding points. This makes it extremely helpful when you want to figure out which colours you can make with a particular set of primaries. Similarly you can draw the colours corresponding to pure wavelenghts and figure out the entire space of physically possible colours by taking its convex closure.

These features are not really replicable in any other colour space, at best you can use a linear transformation of it (which XYZ already is, and it has almost all properties you could want of a choice of basis).

replies(1): >>41082765 #
4. anon2345252 ◴[] No.41082562[source]
Oklab is even better.

https://bottosson.github.io/posts/oklab/

replies(1): >>41082835 #
5. JKCalhoun ◴[] No.41082765[source]
That's true. And I will add that the viewable color gamut of a display can be depicted with a simple triangle on the xyY plot. All you need to know are the three chromaticity values for the reg, green and blue phosphors — they make up the three corners of the triangle.
6. refulgentis ◴[] No.41082835{3}[source]
No, it's not, by definition. It's one matrix multiplication to do an approximation of it. More here: https://news.ycombinator.com/item?id=41081832

The only claim to superiority it makes is gradients, and that's a category error: they blend polar opposite hues in the Cartesian space (i.e. x / y / z), rather than polar (i.e. h/s/l). Opposite hues mean lerp'ing in cartesian brings it through the center of the circle, 0 saturation. Thus, blue and yellow do combine to a off-white. Engineering around it indicates something fundamentally off, much less that it is better. I don't ascribe ill intent but I do worry very much about how widely this is misunderstood.

replies(1): >>41088362 #
7. paipa ◴[] No.41083099[source]
I don't think starting with XYZ and color matching functions is a good idea. LMS and cone response functions are a more fundamental and intuitive description of human color response, so if you're going to bother with XYZ at all, you should arrive there from first principles, via LMS.
8. qingcharles ◴[] No.41083860[source]
And when you're done with XYZ, check out XYB used in JPEG XL and jpegli:

https://giannirosato.com/blog/post/jpegli-xyb/

9. ◴[] No.41088362{4}[source]