What a contrast ratio is
The contrast ratio compares how bright your text is with how bright its background is. It runs from 1 to 1 (no difference at all) up to 21 to 1 (black on white). A higher number is easier to read.
Which numbers to aim for
- AA normal text: 4.5 to 1 or higher. This is the usual target.
- AA large text: 3 to 1 or higher. Large means about 24 px, or 19 px bold.
- AAA: 7 to 1 for normal text and 4.5 to 1 for large text. The strictest level.
- Buttons and form parts: 3 to 1 for icons, borders and form fields.
How to check your colors
- Open the Color Contrast Checker and enter your text color and background color, or pick them with the color boxes.
- Read the contrast ratio.
- Look at the pass or fail marks for each WCAG level.
- If it fails, use the suggested colors that are closest to yours.
Why it matters
Low contrast is hard to read for many people, especially outdoors, on small screens and for people with low vision. Good contrast helps every visitor, so it is worth the few seconds it takes.