How to use the contrast checker
- Enter or pick the text color.
- Enter or pick the background color.
- Read the ratio and the pass or fail results.
- Adjust a color until the level you need passes.
WCAG contrast thresholds
AA asks for 4.5:1 for normal text and 3:1 for large text, meaning at least 24px, or about 18.66px bold. AAA raises these to 7:1 and 4.5:1. Icons, input borders and focus indicators need 3:1.
What the ratio does not cover
The ratio ignores font weight, thin strokes, text over images and transparency. Passing is a minimum, so also read the real screen.
Frequently asked questions
Is 4.49:1 a pass for AA?
No. Ratios are not rounded up. This tool truncates the displayed value for that reason.
Does disabled text need to pass?
WCAG exempts inactive controls, though faint text is still hard to read.
What are the lowest and highest ratios?
1:1 for identical colors and 21:1 for black on white.