News for hackers. Stuff that matters.
Re:Myths of Color Contrast Accessibility by nwallin on Saturday October 26, 2019 @12:49AM (#21361791)
Human perception of brightness is almost entirely cued off green levels. #0000FF (ie full blue) simply isn't very bright. #0000FF contrasts far far far more strongly with #FFFFFF than it does with #000000. This is true even for (most types of) color blind individuals. There might be a color blindness that cues hard on blue levels but I can't speak authoritatively in that area.

If you define brightness as (r+g+b)/3 you're doing it wrong. NTSC defines brightness something like .7g + .25r + .05b. (I forgot the exact numbers, but it's really extreme) JPEG assumes something a lot less extreme, but still >.55 green.

Source: I had to implement a saturation function for work and assumed brightness is (r+g+b)/3 and it looked like fucking garbage. In fact image/video compression is full of hacks like this. 4:2:0 is dominant in the video compression space for a reason. Human brains simply don't give a fuck about the color blue.

There are no comments on this comment yet.