3 ms·
Normal comment text on HN is fine, but the title and description text on a post page is absolutely awful low-contrast. It's medium gray on light gray. It's #82
by crazygringo 4y ago
Normal comment text on HN is fine, but the title and description text on a post page is absolutely awful low-contrast.
It's medium gray on light gray. It's #828282 against #F6F6EF, a contrast ratio of 3.54:1 which is a fail. WCAG 2.0 level AA requires at least 4.5:1 for normal text. This isn't subjective or aesthetics, it's an objective measurement.
It's genuinely uncomfortable to read when it's a long "Tell HN" or similar.
> There's certainly such a thing as too high of a contrast
Not really, as long as you can adjust your screen brightness. That's what screen brightness is for. You can always decrease contrast that's too high, but you can't increase it much if it starts too low.
- 542458 4y ago> This isn't subjective or aesthetics, it's an objective measurement. I’m going to push back against this slightly (I’m not disagreeing that the HN contrast is bad, but I am challenging the WCAG ratios). It’s objective, but it’s not a good measurement. WCAG computes contrast in sRGB, which is not perceptually uniform. As such there are cases where WCAG will give better scores to worse contrast. For example, the WCAG math prefers black text on a medium blue background to white text on a medium blue background, which is the exact inverse to what most people feel is most legible. https://github.com/w3c/wcag/issues/695 https://github.com/w3c/wcag/issues/695 It’s the biggest thing I wish would be changed in the WCAG.
- TylerE 4y agoAren’t 99% of users going to be on some random sRGB display, though? How many of us have wide gamut displays that are actually properly calibrated? Looking at the examples from your link is illustrative… several of their 4.5:1 passes are basically unreadable. What I suspect needs to happen is an additional penalty if the background isn’t what would be considered a typical paper color (white, ivory, tan, etc. blues, purples and oranges are right out. )
- zinekeller 4y agoIt's not that it's wrong to focus on sRGB but the computation itself does not use linear gamma (which is not excusable - incorrectly assuming that 2.2 gamma is how people perceive light results on overemphasis on brighter spots)
- crazygringo 4y agoThanks, TIL -- I had no idea. That's a super useful link.
- dragonwriter 4y ago> This isn't subjective or aesthetics, it's an objective measurement. Its an objective measurement, but whether the standard is correct or not is a subjective question of aesthetics. Or it could be empirical question if there qas a performance goal tied to it, and it was a testable proposition whether the objective measure corresponded to the performance goal optimally (sibling comment addressing perceptual uniformity suggests that for any given performance goal, that probably is not the case.)