colby.campthe little toolbox
← Back to tools

A USEFUL LITTLE THING / 018

Color Contrast.

Check an opaque color pair against WCAG text thresholds.

Contrast ratio: 6.86:1

AA normal text (4.5:1)
Pass
AA large text (3:1)
Pass
AAA normal text (7:1)
Fail
AAA large text (4.5:1)
Pass
What this checks

The WCAG 2.2 sRGB text contrast formula for opaque colors. Large text is at least 18pt, or 14pt bold. Passing uses the unrounded ratio. Transparency, gradients, font rendering and entire-page accessibility are outside this check. This is a color-pair calculation, not an accessibility certification.