Skip to content
Accessibility Critical severity

Color Contrast

What is color contrast and why does it matter?

By eiSEO Team · Published Jun 15, 2025 · Updated Feb 27, 2026

What is color contrast?

Color contrast is the difference in luminance between foreground text and its background. WCAG 2.1 requires a minimum contrast ratio of 4.5:1 for normal text and 3:1 for large text (18px bold or 24px regular). Insufficient contrast makes content difficult or impossible to read for users with low vision, color blindness, or those viewing screens in bright sunlight.

Color contrast is the measurable difference in luminance between foreground text and its background, required by WCAG 2.1 to meet a minimum ratio of 4.5:1 for normal text and 3:1 for large text, ensuring readability for users with low vision or color blindness.

Why does color contrast matter?

Roughly 1 in 12 men and 1 in 200 women have some form of color vision deficiency. Low-contrast text forces all users to strain their eyes, increasing bounce rates and reducing time on page. Search engines increasingly factor user experience signals into rankings, so poor contrast indirectly harms your SEO performance.

Key statistics

Low contrast text was found on 83.6% of the top one million website home pages in 2024.

Source: WebAIM Million

Approximately 300 million people worldwide have color vision deficiency.

Source: Colour Blind Awareness

How to fix it

  1. 1

    Use a contrast checker tool (such as the WebAIM Contrast Checker or the browser DevTools accessibility panel) to audit every text-and-background combination on your site.

  2. 2

    Ensure body text meets at least a 4.5:1 contrast ratio against its background, and large text (18px bold / 24px regular) meets at least 3:1.

  3. 3

    Avoid conveying information through color alone — pair color cues with icons, underlines, or text labels so color-blind users can still understand the content.

  4. 4

    Update your CSS variables or design tokens at the theme level so fixes propagate site-wide rather than patching individual elements.

  5. 5

    Re-run an accessibility scan after making changes to confirm all contrast issues are resolved.

Code example

Bad
<div style="background: #ffffff; color: #d3d3d3;">This light-gray text on a white background has a contrast ratio of only 1.6:1, failing WCAG AA.</div>
Good
<div style="background: #ffffff; color: #595959;">This dark-gray text on a white background has a contrast ratio of 7:1, passing WCAG AA and AAA.</div>

Frequently asked questions

WCAG 2.1 Level AA requires a contrast ratio of at least 4.5:1 for normal-sized text and 3:1 for large text (18px bold or 24px regular and above).
Not directly, but poor contrast increases bounce rates and decreases engagement, which are user-experience signals that search engines use when evaluating page quality.
Open Chrome DevTools, go to the Elements panel, select a text element, and look at the contrast ratio in the Styles pane. You can also use browser extensions like axe DevTools or the WAVE toolbar.

Scan your site for accessibility issues

eiSEO automatically detects and helps you fix issues like this across your entire site.