Colour And Contrast

Purpose

Sufficient colour contrast is essential for readability. Low contrast affects users with low vision, colour blindness and those using devices in bright environments.

Requirements

WCAG Contrast Ratios

Text TypeMinimum RatioLevel
Normal text (< 18px)4.5:1AA
Large text (>= 18px)3:1AA
Normal text7:1AAA
Large text4.5:1AAA
UI components3:1AA
Graphical objects3:1AA

Exceptions

Implementation

Choosing Colours

  1. Establish a colour palette with sufficient contrast ratios.
  2. Verify contrast between text and background colours.
  3. Ensure UI states (hover, focus, active, error) also meet contrast requirements.
  4. Test with colour blindness simulators.

Tools

Don't Rely on Colour Alone

Information conveyed by colour must also be available through other means:

Use CaseAlternative
Error stateIcon + text + colour
Status indicatorText label + colour
Link colourUnderline + colour
Graph legendPatterns + labels + colour

Anti-patterns

Testing

  1. Test all text elements with a contrast checker.
  2. Test focus indicators, borders and icon contrast.
  3. Simulate common colour blindness types (deuteranopia, protanopia, tritanopia).
  4. Test in bright sunlight (high ambient light reduces perceived contrast).
  5. Verify with a greyscale filter — all information should remain visible.

Checklist

Related Documents