How to check WCAG color contrast
- Enter Foreground HEX and Background HEX, or use Pick foreground color and Pick background color.
- Read Contrast ratio and the normal and large text AA and AAA results.
- Use Swap colors to reverse the preview and Copy result to copy the ratio.
Check foreground and background HEX contrast
Use this color contrast checker to test the text color and solid background color behind it for web accessibility. Paste a 3-digit or 6-digit HEX code such as #abc or #112233, or choose colors with the native pickers. Relative luminance contrast ranges from 1:1 for identical colors up to 21:1 for pure black on pure white. The live preview displays both normal body copy and large heading text, and Swap colors reverses the foreground and background in one click.
WCAG 2.2 AA and AAA text contrast thresholds
WCAG 2.2 defines separate minimum (AA) and enhanced (AAA) contrast ratios for normal text and large text. Pass or fail is evaluated against the unrounded ratio before rounding to two decimals:
| Text size | Typical CSS equivalent | WCAG 2.2 Level AA | WCAG 2.2 Level AAA |
|---|---|---|---|
| Normal text | Below 18 pt (24px) regular, or below 14 pt (18.67px) bold |
At least 4.5:1 | At least 7.0:1 |
| Large text | At least 18 pt (24px) regular, or at least 14 pt (18.67px) bold |
At least 3.0:1 | At least 4.5:1 |
Sample, convert and build accessible color schemes
When text sits over a photograph or gradient, use the image color picker to sample the darkest and lightest pixels behind the lettering and test each HEX contrast pair here. For a branded QR code, open the custom QR code tool and verify scannability alongside contrast. Translate your chosen HEX values into RGB, HSL, HSV or CMYK with the color converter, or generate coordinated swatches in the color palette generator.
Use the checked foreground and background colors in the logo maker.
Frequently asked questions
What color formats can I enter?
Use three or six HEX digits, with an optional #. Each input represents an opaque sRGB color.
What ratios pass for normal text?
Normal text needs at least 4.5:1 for AA and 7:1 for AAA.
What ratios pass for large text?
Large text needs at least 3:1 for AA and 4.5:1 for AAA.
Why can a displayed 4.50:1 fail?
The display rounds to two decimals. The pass result uses the full calculated ratio, so a value below 4.5 still fails that threshold.
Will swapping the colors change the ratio?
No. The formula compares the lighter color to the darker one. Swapping changes how the preview looks.
Last updated November 12, 2026