Colour Contrast Checker
Check the contrast ratio between a text colour and a background colour against WCAG 2.2 AA and AAA for normal and large text.
| Check | Needs | Result |
|---|
About this tool
WCAG 2.2 requires a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (AA), and 7:1 and 4.5:1 for AAA.
Large text means at least 24 CSS pixels, or 18.66 pixels in bold. Buttons, icons, and form borders need 3:1 against their surroundings.
Runs entirely in your browser. Nothing you enter or open is uploaded.
Questions
- How is the ratio calculated?
- From the relative luminance of the two colours: (lighter + 0.05) / (darker + 0.05). It ranges from 1:1 to 21:1.
- Does the checker handle transparency?
- Use opaque colours. For a semi-transparent text colour, check the colour it blends to on the background.