logoalt Hacker News

erikigyesterday at 3:39 PM1 replyview on HN

On a good monitor, I got to 0.0032 and then it all fell apart.

Here's the related article on how much accuracy is really needed in CSS values. https://www.keithcirkel.co.uk/too-much-color/


Replies

patrakovyesterday at 9:18 PM

It's worse.

The code contains a function that, given the target ΔE, generates two colors in floating-point Oklab representation, separated by that distance. But there is no check whether the two generated colors end up rounding to exactly the same one on 8-bit displays. So, I was asked to find a boundary (while the claim was that there were two distinct colors 0.0013 ΔE apart) between RGB(80, 83, 152) and RGB(80, 83, 152). Obviously unfair.

show 1 reply