Can people read your website?
A website can look beautiful and still be hard to read. It is the most common fault I see on small firm sites, and the easiest to miss when you sign off a design on a big screen in an air-conditioned office.
Three things decide it: how big the text is, how much it stands out from its background, and how long each line runs.
Check two colours
Pick a text colour and a background, or paste the codes from your own site. The ratio updates as you go.
This test runs in your browser and needs JavaScript switched on.
Opening hours and how to reach us.
Monday to Friday, 9am to 6pm. Call or WhatsApp us, or send an enquiry and we will reply within a working day.
2.85 to 1
Text size
On a phone, paragraphs should be at least 16px. Below that, people pinch to zoom or give up. Small labels, dates and captions can go smaller, but the text people actually read should not.
Test: open your site on your phone and read one paragraph at arm's length. If you bring the phone closer, it is too small.
Contrast
Contrast is how far the text colour is from the background colour, given as a ratio. The standard most guidance points to is WCAG AA:
- 4.5 to 1 for normal text
- 3 to 1 for large text, about 24px, or 19px in bold
Light grey on white is where most sites fail. The grey #999999 on white is 2.85 to 1, well under the bar. The lightest grey that passes on white is #767676.
Watch for text laid over photos. It can pass over a dark patch and fail over a light one a few pixels away, and the photo will change the day someone swaps it. Text over an image needs a shade behind it.
Test: WebAIM's contrast checker is free. Paste in your text colour and your background colour and it tells you pass or fail. In Chrome, right-click any text, choose Inspect, and click the colour swatch: it shows the ratio too.
Line length
On a desktop, a line of text should run about 45 to 75 characters. Wider than that and the eye loses its place going back to the start of the next line. It is why a paragraph stretched across a wide screen feels tiring even when the text is large.
Test: count the characters on one full line of a paragraph on your laptop. Over about 90 and the column is too wide.
The mistake I made
My own social media cards used to carry their contrast numbers in a note inside the code. Both numbers were wrong: one colour I had written down as 3.2 to 1 was really 2.63. The colours still passed where they were used, so nothing broke, but that was luck.
Now a script checks every accent colour against every background it can sit on, and refuses anything under 4.5 to 1, even for big type that is allowed 3 to 1. The small labels use the same colour as the headline, so the small text decides it.
What to ask a designer
- What is the body text size on a phone?
- Does every text colour pass WCAG AA against every background it sits on?
- What happens to text over photos when the photo changes?
What I do by default
Paragraphs at 16px or more on a phone, and every text colour checked at 4.5 to 1 against the backgrounds it sits on (WCAG 2.1 AA) before launch.