Color Contrast Checker
Compare two colors, preview text, and check the contrast ratio against WCAG 2.2 thresholds.
Colors
Enter a 3- or 6-digit hex color, with or without #.
Text preview
Aa
The quick brown fox jumps over the lazy dog.
Contrast ratio
—| Check | Minimum | Result |
|---|---|---|
| AA normal text | 4.5:1 | — |
| AAA normal text | 7:1 | — |
| AA large text | 3:1 | — |
| AAA large text | 4.5:1 | — |
| AA controls and graphics | 3:1 | — |
How to read the WCAG 2.2 checks
The checker compares two opaque colors and uses the unrounded ratio for pass or fail results. For a translucent color, first find the color it produces over its actual background.
Large text is at least 18 pt regular or 14 pt bold, approximately 24 CSS pixels or 18.7 CSS pixels, respectively. The controls and graphics check applies to visual information needed to recognize controls, their states, and meaningful parts of graphics. Compare those elements with their adjacent colors.