WCAG 2.1 (Web Content Accessibility Guidelines) defines minimum contrast ratios to ensure text is readable for people with low vision or colour blindness: 4.5:1 for normal text (AA), 7:1 for normal text (AAA), and 3:1 for large text or UI components. This checker calculates the exact ratio and shows which thresholds your colour pair passes or fails.
The WCAG contrast ratio formula uses relative luminance (L), computed by linearising each sRGB channel and applying a perceptual weighting: 0.2126R + 0.7152G + 0.0722B. Ratio = (L1 + 0.05) / (L2 + 0.05) where L1 is the lighter colour's luminance. The ratio ranges from 1:1 (no contrast) to 21:1 (black on white). Note that the 4.5:1 AA requirement applies to "small" text (below 18pt regular or 14pt bold); "large" text only needs 3:1.
4.5:1 for normal text (below 18pt regular weight or 14pt bold), and 3:1 for large text, essential UI components, and logotype text.
Luminance-based contrast ratio does not directly model colour blindness. However, sufficient luminance contrast ensures readability across most types of colour vision deficiency, since it does not rely on hue alone. Use a colour blindness simulator to verify specific colour combinations.
Options: darken the background colour, use a drop shadow on the text, increase font size (to use the lower large-text threshold), or switch to dark text. The suggestions panel shows the nearest passing shade of your background colour.
AAA requires 7:1 contrast for normal text and 4.5:1 for large text. It is the strictest level, aimed at users with severe visual impairments. Many design systems target AA; AAA is recommended but not always achievable within brand guidelines.
See also the Color Converter and Colour Name Finder for related design tools.