Pick the text and background colours to get the contrast ratio and whether it passes WCAG for body text and headings, with a suggested colour if it does not.
Check your colours nowFour steps, all in your browser with no sign-up.
Text and background.
With a live text preview.
Pass or fail per criterion.
A close, readable colour.
A number from 1 to 21 measuring the difference in luminance between text and background. Black on white is 21:1; a colour on itself is 1:1. The higher it is, the easier reading becomes, especially on phones in sunlight and for older or low-vision readers.
| Criterion | Required ratio |
|---|---|
| Body text (AA) | At least 4.5:1 |
| Large text and headings (AA) | At least 3:1 |
| Body text, higher level (AAA) | 7:1 |
| Icons, button and field borders | 3:1 |
Step-by-step fixes from our knowledge base.
Each colour has a "relative luminance" from 0 for black to 1 for white, computed from red, green and blue with different weights because the eye is most sensitive to green. The ratio is (lighter + 0.05) ÷ (darker + 0.05). That is why two colours can look very different in hue yet have weak contrast, like red and green, when their luminance is close.
Short definitions of what you meet along the way.
Did not find your answer? Ask us on WhatsApp
Not directly, but Google quality tools flag it, and easier reading keeps visitors longer.
AA is the commonly required level; AAA is a higher level for sites serving a wide audience.
We darken or lighten your text colour step by step until it reaches 4.5:1 on your background, staying close to your original.
The guidelines exempt logos, but a logo that stands out on its background is better for your brand.
We design with harmonious colours and test readability before delivery.
We use necessary cookies to run the site, and Google Analytics to measure visits only if you agree. You can change your choice at any time from “Cookie settings”. Privacy policy