Color contrast checker
Check text and background colors against WCAG AA and AAA, and get the closest passing color.
How to use the color contrast checker
- Enter or pick the text and background colors.
- Read the ratio and the pass or fail results.
- If it fails, click Use it to apply the closest passing text color.
Frequently asked questions
What ratio do I need?
WCAG AA needs 4.5:1 for normal text and 3:1 for large text and UI parts. AAA needs 7:1 and 4.5:1.
What counts as large text?
At least 24 px regular, or about 18.66 px bold.
How is the suggestion made?
We keep the hue and saturation of your text color and change only its lightness until it passes.
Related tools
Everything runs in your browser. Your files and text are never uploaded.