Glitchmark
Log in
Colour theme

How to fix text that’s hard to read (contrast)

By Afaq Ahmad. Published , last updated .

Text is hard to read when its colour is too close to the colour behind it. The accessibility standard (WCAG AA) asks for a contrast ratio of at least 4.5 to 1 for normal text and 3 to 1 for large text. Darken the text or lighten the background until the ratio is met; Chrome DevTools shows the ratio for any text.

Free tool for this: Free contrast checker. It checks one page, with no sign-up.

What the numbers mean

Contrast ratio compares the brightness of two colours, from 1 to 1 for identical colours to 21 to 1 for black on white. WCAG AA asks for 4.5 to 1 for normal text and 3 to 1 for large text, which is about 24 pixels, or about 19 pixels if bold.

Measure the text in Chrome

  • Right-click the text and choose Inspect.
  • In the Styles panel click the small colour square next to color.
  • The picker shows the contrast ratio, with a tick or a warning, and suggests a passing colour.

Fix it without redesigning

  • Darken the text colour in small steps until it passes. Muted grey text is the usual culprit: #999999 on white is about 2.8 to 1, while #595959 is about 7 to 1.
  • Or lighten the background instead.
  • Fix it where the colour is defined, such as a design token or a shared class, so every use is fixed at once.
  • Check both your light and your dark theme, as they have separate colours.
  • If you use an AI builder, name the element and the target: “Darken the text with the class text-muted so its contrast ratio is at least 4.5 to 1 on its background, in light and dark mode.”

What a tool can and cannot judge

Contrast tools such as axe measure text on a solid colour well. Text over a photo or a gradient has no single background colour, so they cannot give a reliable ratio and report it as needing a manual look. Check those by eye: if you struggle to read it on a phone outdoors, so will your visitors.

Find the faint text on a page

The free contrast checker opens one page, finds text that falls below the ratio and marks it on a picture of the page. A Glitchmark scan finds it across every page it can reach, up to your plan’s page limit.

Questions

What is a good contrast ratio for text?

At least 4.5 to 1 for normal text and 3 to 1 for large text, to meet WCAG AA.

Does contrast matter for a small business site?

Yes. Faint text is hard to read for many people, in bright light or on a small screen, and some countries expect sites to meet accessibility standards.

Is placeholder text exempt?

No. Placeholder text in a form field also needs enough contrast, and it should not be the only label for the field.

Check your whole site, not one page

Glitchmark opens your site in real browsers on phone, tablet and laptop, finds what is broken and explains each problem in plain English. Your first scan of one site is free, with part of the report.

Scan my site free