SayMySite Sign in Tap and talk — it's free

Choosing colors and fonts everyone can read

How to pick text colors, contrast, font sizes and spacing that people can read on any screen, including people with low vision or color blindness.

By The SayMySite team · Published · 4 min read

A website can look lovely and still be hard to read. Pale gray text on white, thin fancy fonts, light words over a busy photo: they're common, and they make visitors squint, zoom, or leave. People with low vision or color blindness are affected most, but so is anyone reading on a phone in bright sunlight, or with tired eyes at the end of the day.

This guide covers the few rules that make text readable for nearly everyone, without making your site look plain.

Contrast: the most important rule

Contrast is the difference in brightness between text and its background. Dark text on a light background, or light text on a dark background, is easy to read. Mid-gray on light gray is not.

The international Web Content Accessibility Guidelines (WCAG) give specific numbers, expressed as a contrast ratio:

TextMinimum contrast ratio
Normal body text4.5 to 1
Large text (roughly 24px, or about 19px if bold)3 to 1
Icons and the edges of form fields and buttons3 to 1

You don't need to calculate these yourself. Free online contrast checkers let you enter two colors and tell you whether they pass. Many browsers' built-in developer tools show contrast too.

Common contrast problems

  • Light gray text for body copy or form labels. It's fashionable, and often fails.
  • Brand colors on white, such as yellow, light green, orange or pale blue text. They may work for a big logo but not for small text or buttons.
  • White text on bright colors, such as white on light orange or light green buttons.
  • Placeholder text in forms, which is often very pale. Use a proper label above the field instead.
  • Text over photos. A photo has light and dark areas, so some words end up unreadable. If you put text over an image, add a solid or semi-transparent dark band behind it, or move the text off the photo.

If your brand color fails for text, keep it for larger decorative elements and use a darker shade of it for text and buttons.

Don't rely on color alone

Roughly one in twelve men, and far fewer women, have some form of color vision deficiency, most often difficulty telling red from green. Color is also lost on some screens and printouts. So never use color as the only way to show something:

  • Links within paragraphs should be underlined, or otherwise distinguished by more than color.
  • Required form fields should say "required", not just have a red asterisk.
  • Error messages should explain the problem in words: "Please enter your phone number", not just a red outline.
  • Charts and maps should use labels or patterns as well as colors.
  • "Sale" items should say "Sale", not just appear in red.

Font size

Small text is one of the most common problems on small-business websites, especially on phones.

  • Body text: a size of around 16 pixels is a widely used minimum for websites, and many sites go larger. If you're squinting at your own site on your phone, it's too small.
  • Don't shrink text to fit more in. Cut words instead.
  • Let people zoom. Your site should still work when someone zooms to twice the size or increases their phone's text size. Some sites block zooming on phones; that should be switched off.

Choosing fonts

  • Pick a clear, simple font for body text. Many common sans-serif and serif fonts work well. What matters is that letters are distinct, with clear shapes and normal spacing.
  • Save decorative fonts for headings or your logo, if you use them at all. Script, handwriting and very thin fonts are hard to read in paragraphs.
  • Avoid very thin weights for body text. Thin strokes nearly disappear on some screens.
  • Use two fonts at most: one for headings, one for body text. More looks messy and slows the site down.
  • Avoid long passages in capitals or italics. Both are harder to read in bulk.

Spacing and layout

Good spacing makes text easier to follow, especially for people with dyslexia or low vision.

  • Line spacing: give lines room to breathe. Around 1.5 times the font size is a common, comfortable choice for body text.
  • Line length: very long lines are tiring to read across. On large screens, keep paragraphs to a comfortable width rather than stretching edge to edge.
  • Paragraph spacing: leave clear space between paragraphs.
  • Left-aligned text is easier to read than centered or fully justified text for anything longer than a line or two.
  • Short paragraphs and clear headings help everyone scan.

Dark mode and themes

Some visitors set their phone to dark mode, and some browsers can change site colors. If your website offers a dark version, check that its contrast passes too, and that images with transparent backgrounds, like logos, still show up.

A ten-minute check

  1. Open your site on your phone, outdoors or near a bright window. Can you read everything comfortably?
  2. Run your main text, link and button colors through a free contrast checker.
  3. Look for text placed over photos.
  4. Check that links in paragraphs are underlined or otherwise clear without color.
  5. Zoom your browser to 200% and see whether anything gets cut off or overlaps.
  6. Look at your forms: are labels visible, and are errors explained in words?

Our guide to making your website accessible covers the other basics, such as image descriptions and keyboard use.

The short version

Make text contrast strongly with its background, at least 4.5 to 1 for normal text, and check it with a free tool. Never use color alone to carry meaning. Use a comfortable font size, a clear font, generous line spacing and sensible line lengths. Keep text off busy photos. A site that's easy to read looks more professional, not less, and it works for every customer who visits.

Filed under: Accessibility, Website basics