logoalt Hacker News

Tweytoday at 2:07 AM2 repliesview on HN

More generally use a contrast checker on any pair of colours that are likely to be in juxtaposition and need to be legible.

Helpful of the website to demonstrate the problem in situ in its tag links and code comments! (Maybe just in dark mode?)


Replies

SoftTalkertoday at 2:48 AM

Yes, you want enough contrast, but not too much. Either extreme is hard to look at for long periods.

cryzingertoday at 3:16 AM

WCAG color contrast checkers in particular have never steered me wrong. It's interesting (but makes sense) that contrast needs to be higher for small text than for large text!