I'm now indisputably middle-aged, and my eyesight isn't what it used to be. Specifically, I get very frustrated when text on screens contrasts poorly with background colors.
A few years ago, I made an JavaScript color contract checker. You specify two colors and the widget will tell you how well the colors contrast, and whether the contrast meets accessibility guidelines.
- Permanent links to your comparison (in case you find a particular color combo amusing.)
- A new mode allowing you to evaluate the contrast between one color and shades of another.
- Some help pages: instructions for using the tool and a gentle explanation of colors in CSS.
On the technical side, I rewrote the code in TypeScript, a language that I have been meaning to learn.