Perceptual colour, practical contrast

Contrast Lab

Tune foreground and background colours in OKLCH, then see their WCAG contrast result immediately. Everything runs in this one file.

Contrast ratioWCAG 2.2

–:1

Foreground

Inside sRGB gamut

Background

Inside sRGB gamut

Live preview

Sphinx of black quartz, judge my vow.

Readable colour is good design. Adjust lightness, chroma and hue to find a pairing that keeps its character while meeting the contrast target.