Contrast checker
Check if your text is readable against its background, following WCAG 2 guidelines. If it fails, get the closest color that passes.
Contrast ratio
Large text preview. Headlines need at least 3:1.
Body text preview. Most paragraphs on the web are about this size, and they need a contrast of at least 4.5:1 to be comfortable to read for everyone.
Understanding the results
AA is the standard level most websites aim for. AAA is stricter and recommended for long reading, older audiences or critical information. Large text means at least 24 pixels, or about 18.7 pixels in bold. Read the full explanation in our guide to color contrast.
Questions
What contrast ratio do I need?
For normal text, at least 4.5:1 (WCAG level AA) or 7:1 for AAA. For large text (24px, or about 18.7px bold) and for icons and form borders, at least 3:1.
How is the contrast ratio calculated?
It compares the relative luminance of the two colors with the formula (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter color. The result ranges from 1:1 to 21:1.
Does the order of the colors matter?
No. The ratio is the same whichever color is the text. Readability can still feel different, so preview both versions.