Re:Dark mode in a website with CSS
by andy_ppp on Wednesday October 09, 2019 @02:39AM
(#21200671)
The problem is our brains represent colour in a very weird way and the algorithms I’ve seen for this always look horrible. I guess maybe training a neural net on this might make the results more human!
[ Parent
| on HN ]
No, what really helps is picking the right colour space to work in. Which is probably CIE-LAB, being constructed especially for the weird way our brains perceive colour, but still also works mostly correct if you treat it as a linear space.