Free & private — your files never leave your device.Compress a photo to 100 KB →
Popular
Back to Blog

Color Contrast Explained: Why Your Text Is Hard to Read (and How to Fix It)

Designers love soft, pale text. It looks calm and modern on a nice monitor in a dark room. Then someone opens the site on a phone in bright sunlight, or has tired eyes, or has low vision, and can’t read a word of it.

That’s what colour contrast is about: making sure text stands out enough from its background for everyone to read comfortably.

What a contrast ratio is

A contrast ratio compares how bright two colours are. It runs from 1:1 (no difference at all, such as white on white) to 21:1 (black on white). Higher is easier to read.

The numbers to remember (WCAG)

The Web Content Accessibility Guidelines set the benchmarks most sites aim for:

  • Level AA, normal text: at least 4.5:1.
  • Level AA, large text: at least 3:1. Large means roughly 18pt (24px) or 14pt (about 19px) bold and above.
  • Level AA, interface parts such as input borders and icons: at least 3:1.
  • Level AAA, normal text: 7:1, and 4.5:1 for large text.

Most websites target AA. Many legal and procurement requirements refer to it too.

Common mistakes

  • Light grey on white. A very popular one for captions, placeholders and “secondary” text. It often fails.
  • Text over images. The contrast changes across the picture. Add a solid or semi-transparent overlay behind the text.
  • Coloured buttons with white text. A bright orange or light green button can look great and fail. Check it.
  • Forgetting dark mode. A colour pair that passes in light mode may fail once the background goes dark.
  • Relying on colour alone. A red error message without an icon or text label is invisible to people who can’t distinguish red from green.

How to check yours

  1. Open the colour contrast checker.
  2. Choose your text colour and your background colour.
  3. Read the ratio and see whether it passes AA and AAA for normal and large text.

The tool uses the actual WCAG luminance formula, calculated in your browser, so the number is the real one rather than an estimate.

Fixing a colour that fails

You usually don’t need to change the whole look. Darken the text a few shades, or lighten the background, and re-check. Keeping the same hue and moving only the lightness preserves your brand colour while fixing readability. The colour picker shows HEX, RGB and HSL values so you can adjust lightness precisely, and the palette generator helps you build a set of colours that work together.

Passing isn’t the whole story

A good ratio is necessary, not sufficient. Font size, weight and spacing matter too. Thin fonts at small sizes are hard to read even when they technically pass. Test on a real phone, outdoors if you can, and ask someone else to read a screen over your shoulder. It’s a humbling, useful exercise.

Good contrast helps everyone: older readers, people with low vision, and anyone squinting at a phone at the bus stop. It’s one of the cheapest improvements you can make to a page.