Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Especially the contrast/magic number discussion.

From a developer perspective, working with color palettes with defined "magic numbers" is really great. I have written a blog post [1] around this topic and wrote a tool [2] to calculate/ensure accessible magic numbers for color palettes.

[1] https://darekkay.com/blog/accessible-color-palette/

[2] https://github.com/darekkay/a11y-contrast



I can't tell you how much I love that your first example of contrast failure is HN.

> Our favorite orange website isn't leading by example, either. Some comments are almost unreadable


It's worth pointing out that HNs 's heavily downvoted posts are intentionally hard to read. Thats hardly a gotcha. Now whether they should be is a whole different question.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: