Color Contrast Checker: WCAG AA and AAA
Use this color contrast checker to test text and background colors against WCAG AA and AAA rules. Enter two colors and see the contrast ratio plus pass or fail for normal and large text. A live preview helps you pick colors everyone can read.
Color Contrast Checker
WCAG 2 contrast ratio.
How to use the Color Contrast Checker
- Enter or pick the text color.
- Enter or pick the background color.
- Read the contrast ratio and AA/AAA results.
- Use the suggested color if it fails.
How it works
The WCAG 2 contrast ratio compares the relative luminance of the two colors: (L1 + 0.05) ÷ (L2 + 0.05), from 1:1 (no contrast) to 21:1 (black on white). Level AA needs 4.5:1 for normal text and 3:1 for large text; AAA needs 7:1 and 4.5:1.
Example
Gray #777777 on white is 4.48:1, which just fails AA for normal text; #767676 reaches 4.54:1 and passes.
Frequently asked questions
What contrast ratio is required by law?
Many accessibility laws and the ADA reference WCAG AA: 4.5:1 for normal text.
What counts as large text?
24px regular or about 18.7px bold and larger.
Does it check logos?
Logos are exempt from WCAG contrast rules.
See also: HEX to RGB Converter, Color Picker.
Check color contrast
How to use it
- Enter the text color.
- Enter the background color.
- Read the contrast ratio.
- Check AA and AAA results.
More questions
What ratio passes AA?
4.5 to 1 for normal text and 3 to 1 for large text.
What ratio passes AAA?
7 to 1 for normal text and 4.5 to 1 for large text.
Why does contrast matter?
Good contrast helps people with low vision read your site.
Related tools: HEX to RGB Converter, Color Scheme Generator, Color Picker.