Colour Contrast Checker: Is the Text Readable?

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 now
نص14.2:1نص2.3:1نص2.3:1نص14.2:1

Checker

How the tool works

Four steps, all in your browser with no sign-up.

Pick two colours

Text and background.

See the ratio

With a live text preview.

Get the verdict

Pass or fail per criterion.

Take the fix

A close, readable colour.

What is the contrast ratio?

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.

CriterionRequired 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 borders3:1

Common colour mistakes

  • Light grey on white: looks elegant but is hard to read, the most common mistake.
  • White on orange or yellow: usually fails for body text. Use dark text or a deeper orange.
  • Relying on colour alone: do not let red alone mean "error"; add an icon or a word.
  • Try the font at different sizes in the Arabic font preview.

Guides to read after checking

Step-by-step fixes from our knowledge base.

How is the contrast ratio calculated?

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.

Your brand colours and contrast

  • Use the light brand colour for large buttons and backgrounds, and a darker shade for text and links.
  • Test link colour against both the background and the surrounding text.
  • Put text over images on a dark translucent layer, not text colour alone.
  • Re-check in dark mode; the ratios change.

Key terms

Short definitions of what you meet along the way.

Contrast ratio
A number from 1 to 21 measuring the luminance difference between text and background; higher reads easier.
WCAG
International web accessibility guidelines that set, for example, minimum contrast and touch target sizes.
AA and AAA
AA is the usual requirement (4.5:1 for body text); AAA is stricter (7:1) for wide audiences.

Frequently asked questions

Did not find your answer? Ask us on WhatsApp

Does contrast affect SEO?

Not directly, but Google quality tools flag it, and easier reading keeps visitors longer.

What is the difference between AA and AAA?

AA is the commonly required level; AAA is a higher level for sites serving a wide audience.

How is the suggested colour chosen?

We darken or lighten your text colour step by step until it reaches 4.5:1 on your background, staying close to your original.

Does contrast matter for logos?

The guidelines exempt logos, but a logo that stands out on its background is better for your brand.

Want a site that is easy to read?

We design with harmonious colours and test readability before delivery.

Contact us on WhatsApp