3 ms·
The white and gray don’t look that bad to me but it’s not for me, it’s for people with various vision impairments. Ignore your lying eyes, trust the math. Also
by extra88 7y ago
The white and gray don’t look that bad to me but it’s not for me, it’s for people with various vision impairments. Ignore your lying eyes, trust the math.
Also, to me the superiority of using black is more apparent if the gray is the background color.
- csande17 7y agoA better example is when you have a #FF0000 red background. WCAG says you should use #000000 black text on it, but #FFFFFF white text is actually more accessible to people with color deficient vision[1] and, to my eyes at least, reads more easily and has more contrast. [1] https://accessibility.psu.edu/color/colorvisiondetails/#RK https://accessibility.psu.edu/color/colorvisiondetails/#RK
- jacobolus 7y agoPlease don’t use a #FF0000 background under any circumstance. It is an extremely colorful medium-lightness red which will be somewhere between unpleasant and physically uncomfortable to look at (not to mention illegible) irrespective of the foreground text color.
- csande17 7y agoYeah, #FF0000 was just an example. The problem also happens with other shades of red, like #F44336 from the old Material Design palette.
- mark-r 7y agoMy suggested test used the gray for background, with black text or white text over it. I can't trust the math, because I don't know how they derived it. Well the conversion from sRGB to linear RGB and from there to luminance is straightforward and standard, but the formula for contrast is a real mystery. Where'd those magic 0.05 constants come from? And does it really not make a difference if it's light on dark vs. dark on light?