Project
Colour Contrast
A WCAG contrast checker for whole colour palettes: add your colours and it checks every pair.
What it does
Enter colours as hex or RGB values. Every pair is compared both ways round and graded AA or AAA for small text, large text and non-text elements, against WCAG 2.1. A slider sets the minimum ratio, with the 3, 4.5 and 7 thresholds marked.
What I built
- Pairwise checks across the whole palette, so a designer sees which combinations pass in one go instead of checking two colours at a time.
- The palette and minimum ratio kept in the address, so a link shares the exact check.
- Colour parsing with tinycolor2, and ratios from the wcag-contrast library.