Accessibility is not optional — and contrast is where most designs quietly fail. Here is what WCAG 2.1 actually requires and how to check your own palettes.
Around 300 million people worldwide have some form of color vision deficiency, and hundreds of millions more have reduced visual acuity due to age, bright light, or low-quality screens. When your text does not contrast sufficiently against its background, you are making your content unreadable for a significant portion of your audience — and potentially violating accessibility law.
WCAG (Web Content Accessibility Guidelines) sets the international standard for accessible contrast. It is referenced by accessibility laws in the US (ADA), EU (EN 301 549), UK (Equality Act), and others. Here is what it actually says — and how to apply it without turning your design into a black-and-white wall of text.
Contrast ratio is a number between 1:1 (identical colors — zero contrast) and 21:1 (pure black on pure white — maximum contrast). It is calculated using the relative luminance of both colors according to a formula that accounts for how the human eye perceives brightness differently across wavelengths.
You do not need to calculate this by hand. Use a tool like the Smart Color contrast checker — enter your foreground and background hex codes and it will tell you the ratio instantly along with pass/fail status for every WCAG level.
There are two conformance levels: AA (the practical minimum for most compliance requirements) and AAA (enhanced, recommended for critical text).
The most common failures are not in body copy — most designers know to use dark text on white. The failures appear in:
A common misconception is that accessible means low-chroma or muted. Not true. Highly saturated colors can absolutely meet contrast requirements — you just need to be deliberate about which combinations you pair.
For example, a rich cobalt blue (#1a3c8f) on white clears AAA for normal text at 9.8:1. A vivid coral (#e8533a) on white only hits 3.1:1 — fine for large text but not body copy. Swapping that coral text onto a dark navy background can push it well past 4.5:1 while keeping the vibrant character of your palette.
Use Smart Color's contrast checker to test any hex pair instantly. It shows the contrast ratio, the WCAG grade, and a live preview so you can see exactly what the pairing looks like as you adjust.
Contrast is the most measurable accessibility criterion, but it is not the only color-related one. Never use color as the sole means of conveying information — if your form shows errors by turning a border red, also add an icon or text label. Around 8% of men have red-green color blindness and may not notice the color change at all.
Tools like color blindness simulators can preview how your palette appears to users with deuteranopia (the most common type), protanopia, or tritanopia. Most graphic design tools have this built in, or you can use browser extensions.
Ready to put these ideas into practice?