Colour picker + WCAG contrast checker
Pick two colours, see them in HEX / RGB / HSL / OKLCH side-by-side, and instantly check WCAG AA and AAA contrast for normal and large text. Live preview, swap, and one-click nudge to a passing colour. Everything runs in your browser.
#0B0F1Argb(11, 15, 26)hsl(224, 41%, 7%)oklch(17.0% 0.024 268.5)#FAFAFArgb(250, 250, 250)hsl(0, 0%, 98%)oklch(98.5% 0.000 0.0)The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog. (16px bold)
The quick brown fox jumps over the lazy dog. (24px)
Click a swatch to set foreground; click bg below to set background.
Colour values stay in your browser.
How to use
Pick your foreground (text) and background colours using the native colour wheels — or paste a HEX / rgb() / hsl() value into the text fields and the rest auto-fills.
Read off all four representations of each colour: HEX for CSS, RGB for image editors, HSL for quick hue/lightness tweaks, and OKLCH for perceptually-uniform design-system tokens. Click any value to copy.
Check the live preview to see how the pairing actually reads at 16px regular, 16px bold, and 24px — these are the real sizes your buttons, body copy, and headings will use.
Glance at the contrast ratio and the four WCAG badges (AA Normal, AA Large, AAA Normal, AAA Large). Green = pass, red = fail.
If you fail AA Normal, hit Find next passing colour to nudge the foreground's lightness until it crosses the 4.5:1 threshold — or click a swatch in the curated palette to try a new starting point.