| Format | Value |
|---|
WCAG contrast checker
Large text 24 px
How the math works
sRGB → linear via the standard gamma curve, then to OKLab using Björn Ottosson's matrix, then to OKLCH by polar coords. HSL/HWB use the standard CSS Color Module 4 formulas.
WCAG 2.2 contrast: ratio = (L1 + 0.05) / (L2 + 0.05) using relative luminance from the sRGB→linear weighted sum (0.2126 R + 0.7152 G + 0.0722 B). AA = 4.5, AAA = 7 for normal text; 3 and 4.5 for large (18 pt / 14 pt bold).