Contrast checker
Check the WCAG 2 contrast ratio of a text colour on a background, with AA and AAA results.
Contrast ratio 17.4 to 1.
Preview
Large text, 24 pixels
Normal text at body size. The quick brown fox jumps over the lazy dog.
WCAG 2 checks
- Normal text, AA needs 4.5:1Pass
- Normal text, AAA needs 7:1Pass
- Large text, AA needs 3:1Pass
- Large text, AAA needs 4.5:1Pass
- Icons and UI parts, AA needs 3:1Pass
Missing a feature or found a bug in Contrast checker? Tell me on X (@_andrewtran) or by email.
How to use Contrast checker
- Enter the text colour and the background colour, or pick them.
- Read the ratio and the pass or fail for each level.
- Adjust a colour until the level you need passes.
Questions and answers
Is my data sent anywhere?
No. Everything runs in your browser on this device. Nothing you paste is uploaded or stored.
What counts as large text?
Text of at least 24 pixels, or at least 18.66 pixels when bold. Large text needs 3 to 1 for AA, and normal text needs 4.5 to 1.
Is the ratio rounded?
It is cut to two decimals and never rounded up, so a result just under a limit is shown as a fail.
Related tools
px to rem converter
Convert pixels to rem and rem to pixels for any root font size, a whole list at a time.Random string generator
Generate secure random strings, keys and tokens from letters, digits, symbols or your own characters.ROT13
Encode or decode text with ROT13, the letter-rotation cipher that undoes itself.Morse code translator
Translate text to Morse code and Morse code back to text.