Color Contrast Checker
Enter a text colour and a background colour to see the contrast ratio and whether it passes WCAG AA and AAA. If it fails, the tool suggests a text colour that reaches 4.5:1.
Large text sample
Normal text sample: the quick brown fox jumps over the lazy dog.
Contrast ratio
14.68:1
- AA, normal text (4.5:1)Pass
- AA, large text (3:1)Pass
- AAA, normal text (7:1)Pass
- AAA, large text (4.5:1)Pass
- AA, buttons and icons (3:1)Pass
Features
- Contrast ratio with pass or fail for AA and AAA
- Separate results for normal text, large text and buttons or icons
- Live preview with sample text
- Suggests a text colour that passes AA
How to use Contrast Checker
- Enter the text colour and the background colour.
- Read the ratio and the pass or fail results.
- Use the suggested colour if the pair fails.
Frequently asked questions
What contrast ratio do I need?
WCAG 2 asks for at least 4.5:1 for normal text and 3:1 for large text at level AA. Level AAA asks for 7:1 and 4.5:1. User interface parts such as button borders and icons need 3:1.
What counts as large text?
WCAG describes large text as at least 18 point (24 pixels) or 14 point (about 18.7 pixels) in bold. Anything smaller is normal text.
Is a passing ratio enough to be accessible?
No. Contrast is one part of accessibility. Font size, spacing, and whether information depends on colour alone matter too. This tool checks only the contrast of two flat colours.
Which formula does it use?
The WCAG 2 relative luminance formula. It does not use the newer APCA method, which gives different results.