Skip to main content
Accessibility

Color Contrast Ratio

The color contrast ratio compares the relative luminance of foreground and background colors, from 1:1 to 21:1.

Also known as: contrast ratio, luminance contrast

What You Need to Know

WCAG 1.4.3 Contrast (Minimum) requires a ratio of at least 4.5:1 for normal text and 3:1 for large text. WCAG 1.4.11 Non-text Contrast requires at least 3:1 for many interface components and graphics. The ratio is calculated from the relative luminance of the two colors using the formula in WCAG, and automated tools cannot judge contrast over images or gradients.

Sources & References

This information is sourced from authoritative government and academic institutions:

  • w3.org

    https://www.w3.org/WAI/WCAG22/Understanding/contrast-minimum.html