EN TR
Journal

Contrast, Size and Spacing: A Guide to Accessible Type and Colour

Admin 3 min read
Contrast, Size and Spacing: A Guide to Accessible Type and Colour

Accessibility is often treated as a compliance checkbox. Yet strong contrast and comfortable type help anyone reading in bright sunlight, with tired eyes or on a poor screen. Here are concrete measures design and development teams can apply right away.

Contrast ratios

WCAG measures the luminance ratio between text and background. For Level AA, normal text needs at least 4.5 to 1, and large text (roughly 24 pixels, or 19 pixels bold) needs at least 3 to 1. User interface components and meaningful graphics should also reach 3 to 1. Popular combinations such as white text on light grey or grey hint text on grey often fall below the threshold.

Test palettes at design time; browser developer tools and free contrast checkers show the ratio instantly. Fixing contrast late may mean reopening brand colour discussions, so build a pairing table of dark and light tones from the start.

Do not rely on colour alone

If red means error and green means success, a colour-blind user may miss the difference. Add an icon or text to every state. Links that differ from surrounding text only by colour are also problematic; use an underline or another visual cue.

Text size and scaling

  • 16 pixels is usually a good starting point for body text on desktop and mobile.
  • Define sizes in rem rather than pixels so the user's browser setting is respected.
  • At 200 percent zoom, content should not be cut off or force horizontal scrolling.

Line length and spacing

A readable paragraph line runs about 45 to 80 characters. Very long lines make it hard for the eye to find the next one. A line height around 1.5 is a good start for body text, with enough space between paragraphs. WCAG's text spacing criterion expects content to survive when users increase spacing, so avoid cramming text into fixed-height boxes.

Choosing typefaces

Highly decorative fonts work in headings but reduce readability in long text. Always test that special characters render correctly if your audience needs them, as some display fonts handle diacritics poorly. Use no more than two families where possible and build hierarchy with weight.

Dark mode

Pure white on pure black can glare for some users. Slightly softened greys may reduce eye strain. Verify contrast ratios separately in each theme.

Quick checklist

  • Is text contrast at least 4.5 to 1?
  • Are errors and successes shown by more than colour?
  • Are sizes defined in rem and does zoom work?
  • Are line length and height comfortable?
  • Is the focus indicator visible?

These checks cost little and reach a wider audience while making the interface look more professional overall.

accessible design colour contrast wcag typography readability

More articles