Validating a web design
Checking text and background pairs before building avoids reworking the palette when someone spots the problem.
Check whether two colors meet WCAG contrast.
🔒 This file is processed in your browser. It is never uploaded anywhere.
…
The contrast between text and its background determines whether it can be read comfortably. It is measured as a numeric ratio between the luminance of both colours, running from 1:1 when they are identical up to 21:1 for pure black on pure white.
The WCAG guidelines, the international reference for web accessibility, set the thresholds. For normal-sized text, 4.5:1 is the minimum for level AA, which is what is usually required and what accessibility legislation in many countries mandates for public-sector websites. Level AAA, stricter, asks for 7:1.
This is not merely about ticking a box. The light grey on white that looks so elegant on the designer’s screen becomes illegible in sunlight, on a phone with the brightness down, or for anyone with tired eyes, which is a far larger group than people tend to assume.
Checking text and background pairs before building avoids reworking the palette when someone spots the problem.
Public-sector sites and many tenders require level AA. The check documents that you comply.
A headline over a photo needs checking against the lightest part of that photo, which is where it reads worst.
For normal text, a minimum of 4.5:1 meets level AA (the usual standard) and 7:1 meets the stricter level AAA.
Low contrast makes text hard to read for people with low vision and makes your site less accessible and harder to read for everyone, especially outdoors or on low-quality screens.