Colour contrast, explained
Low contrast is one of the most common problems on the web. Pale grey text can look elegant on a good monitor and be hard to read on a phone in sunlight.
WCAG, the main web accessibility standard, measures this as a ratio. Level AA asks for at least 4.5 to 1 for normal text and 3 to 1 for large text. Level AAA asks for 7 to 1 for normal text.
Contrast also applies beyond text. WCAG 2.1 asks for 3 to 1 on important interface parts such as form borders and icons that carry meaning.
Check text over images and gradients too, since the background changes across the line. Free tools and browser dev tools can measure any pair of colours. For legal requirements, check with an adviser.



