Foldwren

Colour contrast and readability on the web

Why light grey text and words over photos are hard to read, how to check contrast properly, and how to keep text legible in sunlight.

If visitors can't read your text comfortably, nothing else about the design matters. Low contrast is the most common readability problem we see on small business websites, and it is nearly always the same culprit: pale grey text on a white background.

Contrast is simply the difference in lightness between text and whatever sits behind it. Black on white is the maximum. Light grey on white is close to the minimum. Most problems live in between, in choices that looked refined on a designer's monitor and turn out to be a strain everywhere else.

The light grey text problem

Soft grey body text became fashionable because it looks gentle and expensive in a design mockup. On a large, bright, well calibrated screen in a dim studio, it is perfectly readable.

Your customers aren't in a dim studio. They are on a phone with the brightness turned down to save battery, or on an ageing laptop, or they are sixty and their eyes aren't what they were. For them, pale grey text is hard work, and hard work on a website usually ends with the back button.

The fix is rarely dramatic. You don't need pure black. A dark charcoal on an off white background reads beautifully and still looks soft. The change from a mid grey to a charcoal is one line in the site's styling, and most visitors will find the page more pleasant without knowing why.

What "enough contrast" means

You don't have to judge this by eye. The Web Content Accessibility Guidelines, the international standard for accessible websites, define contrast as a ratio between two colours. The commonly used minimum is 4.5 to 1 for normal body text, and 3 to 1 for large text such as headings.

Free online contrast checkers do the sums for you. You enter the text colour and the background colour, and the tool reports the ratio along with a pass or fail.

Two practical points:

  • Ask your designer for the numbers. A professional should be able to tell you the contrast ratio of your body text, your buttons and your links.
  • Treat the minimum as a floor. Passing by a whisker is acceptable. Passing comfortably is better, especially for an older audience.

Text over photos

A headline placed across a photograph is a popular look, and a regular source of unreadable text. Photos are patchy. White text may sit well over the dark trees on the left and vanish into the bright sky on the right. Then the screen size changes, the words shift, and the problem moves.

There are several reliable ways to handle it:

  • A dark overlay. A semi transparent dark layer over the whole photo, so white text reads anywhere on it.
  • A gradient. Darkening only the part of the photo where the text sits, which keeps the rest of the image bright.
  • A solid panel. Putting the text in a plain coloured box that sits on or beside the photo.
  • A calmer photo. Choosing an image with a large, even area such as a wall, a benchtop or a stretch of sky, and placing the text there.
  • Splitting them. Text on one side, photo on the other. On a phone, text above and photo below. This is the most dependable option and often the best looking.

Whatever method is used, check it with the real photo on a real phone. And if you update the photo later yourself, check it again. A new image can undo a contrast fix in seconds.

Sunlight, old screens and tired eyes

Contrast that seems fine indoors can collapse outdoors. Glare washes out a phone screen, and anything marginal disappears first.

This matters most for businesses whose customers look them up on the move:

  • A cafe whose menu is read on the footpath
  • A tradie whose customers and suppliers check details on site
  • A winery or tourism business with visitors searching from the car park
  • A market stall or mobile service

For these, we would go well past the minimum: strong dark text, plain backgrounds, generous sizes, and nothing important written over an image.

The same margin helps people on older or cheaper screens, people with low vision, and anyone reading late at night with tired eyes. You are not designing for a perfect viewer in perfect conditions.

Where low contrast hides

Body text gets the attention, but the worst offenders are often elsewhere on the page.

  • Buttons. White text on a yellow, light orange or pale green button is a frequent fail. If your accent colour is light, the button text may need to be dark.
  • Form hints. The pale example text inside form fields is often nearly invisible.
  • Links. A link colour only slightly different from the surrounding text is easy to miss. Underlining links solves this.
  • Footers. Small grey text on a dark grey background is a classic.

A contrast check for your own site

Set aside ten minutes and work through this:

  1. Open your homepage on your phone and turn the brightness down to about half.
  2. Read a full paragraph of body text. Any squinting is a fail.
  3. Read the label on every button.
  4. Look at any text sitting over a photo, then rotate the phone and look again.
  5. Scroll to the footer and read the smallest text on the page.
  6. Take the phone outside and repeat steps two to five.
  7. Note the colours of anything that struggled and run them through a contrast checker.

Send the results to whoever maintains your site. Contrast problems are among the cheapest things to fix, and fixing them makes the site easier for every single visitor.

Your order