logoalt Hacker News

virtualritzyesterday at 10:22 PM1 replyview on HN

RGB is a color model[1], not a color space[2].

Note that the headline gets this wrong but the page linked to gets this right.

sRGB or Rec2020 or ACEScg etc. are color spaces with known primaries and a known whitepoint. This is not nit-picky. Almost everyone doing CGI for the first time w/o reading up on some theory beforehand gets this wrong (because of gamma and then premultiplication, usually in that order).

Then there are color models which are also color spaces. CIE XYZ is an example.

[1] https://en.wikipedia.org/wiki/Color_model

[2] https://en.wikipedia.org/wiki/Color_space


Replies

zeroqtoday at 1:50 AM

Not an expert but I'll drop my 2c

Most of my career was somehow related to graphics programming and I always thought it's bit weird that most quantization algorithms were operating in RGB model despite the fact that it was designed for hardware, not so for faithful color manipulation.

The easiest way to see that is to imagine a gradient between two colors and trying to make it in RGB. It doesn't seem right most of the time.

If so, then why would we consider distance in 3D space between two colors as faithful representation of their likeness?

Well, lo and behold, it's 2025 and everyone finally accepting LAB as the new standard. :)

show 1 reply