Home / Fix guides / Accessibility (WCAG)

How to fix low contrast text (WCAG)

Low contrast text is text whose color is too close to its background, so it is hard to read. To meet WCAG level AA, normal text needs a contrast ratio of at least 4.5:1 and large text at least 3:1, and you fix it by darkening the text or changing the background.

Low contrast text is text that does not stand out enough from the color behind it. Typical examples are light gray body text on white, white text on a pastel button, or a headline placed over a busy photo. If you have ever squinted at a screen in bright sunlight, you know the effect.

What low contrast text looks like

On most small business sites it shows up in the same places:

  • Light gray paragraph text, captions and dates on a white background
  • Placeholder text inside form fields
  • Button labels, such as white on yellow or light green
  • Text laid over a hero photo or video
  • Footer links in a muted color on a dark or colored band
  • Menu items that fade out when they are not hovered

The designer often sees these as elegant and quiet. Many visitors simply see text that is hard to read.

Why it matters

About readers: people with low vision, color vision deficiency, tired eyes or an older screen all struggle with weak contrast. So does anyone on a phone outdoors.

About sales: if prices, opening hours, form labels or button text are hard to read, people leave or make mistakes. You lose enquiries without ever seeing why.

About trust and rules: WCAG (the Web Content Accessibility Guidelines) is the standard that accessibility laws and customer requirements in many countries point to. Contrast is one of the most commonly failed checks, and one of the easiest to test.

About search: contrast is not something to expect a ranking boost from. The practical effect is indirect: visitors who cannot read your page do not stay on it.

What WCAG asks for

The rule is success criterion 1.4.3 Contrast (Minimum) at level AA. Contrast is measured as a ratio from 1:1 (no difference) to 21:1 (black on white).

WhatMinimum ratio (AA)
Normal text4.5:1
Large text (about 24px regular, or about 18.5px bold)3:1
Button borders, form field borders, icons that carry meaning3:1

The last row comes from a separate rule, 1.4.11 Non-text Contrast. Logos, purely decorative elements and disabled controls are exempt. Text that is part of an image is checked too, unless it is a logo.

How to check your site for free

  1. WebAIM Contrast Checker. Enter the text color and background color (hex codes) and it tells you the ratio and whether it passes.
  2. Chrome DevTools. Right-click the text, choose Inspect, then click the small color square next to the color property. The picker shows the contrast ratio with a pass or fail mark and suggests a passing color.
  3. Lighthouse. In Chrome DevTools, open the Lighthouse tab, tick Accessibility and run it. Failing text is listed under the message about background and foreground colors not having a sufficient contrast ratio.
  4. WAVE or axe DevTools. Both are free browser extensions that highlight contrast errors directly on the page.

Automated tools are weak on text over photos, gradients and video, because the background changes behind the letters. Check those by eye, and test the lightest part of the image. Hover, focus and error states also need a look, since tools often only test the default state.

SiteMonday covers this in week 7, the WCAG 2.2 accessibility audit. You get a written report and a ranked fix list; see week 7 for what the audit includes.

How to fix it in general

The fix is almost always a color change, not a redesign.

  • Darken the text. Light gray body text usually only needs to move to a darker gray. Dark gray on white passes easily.
  • Keep your brand color, change how you use it. If your brand color is too light for text, use it for large shapes and backgrounds and pick a darker shade of it for text and links.
  • Flip the pair. A pale button with white text often passes if you use dark text on it, or darken the button itself.
  • Do not fade with opacity. Text set to 50% opacity is a common hidden cause. Use a solid color you have tested.
  • Fix placeholders. Placeholder text is still text. Better still, use a visible label above the field.
  • Calm busy images. Put a semi-transparent dark overlay behind text on photos, or place the text on a solid panel.
  • Make text bigger or bolder only as a fallback: it lowers the required ratio to 3:1, but only once the text really qualifies as large.

Fixing it on common platforms

Menu names change between versions and themes, so treat these as where to look rather than exact paths.

  • WordPress: usually Appearance, then Customize, then Colors. Block themes use Appearance, then Editor, then Styles, then Colors. Page builders have their own color settings. See the WordPress guide.
  • Shopify: usually Online Store, then Themes, then Customize, then Theme settings, then Colors. Many themes use color schemes, so check each scheme. See the Shopify guide.
  • Wix: select the text in the editor and change its color, or adjust the site-wide text styles under Site Design. See the Wix guide.
  • Squarespace: look under Website, then Site Styles, then Colors, and check each color theme.
  • Webflow: select the element and edit text and background colors in the Style panel, or change the shared color swatches.
  • Elementor: look in Site Settings for Global Colors, then check individual widgets that override them.
  • WooCommerce: colors normally come from your WordPress theme, so start there. Sale badges and price text are common failures.

If the color is hard coded in a theme file, a developer can change it in the CSS. Make the change in a child theme or your theme's custom CSS area so a theme update does not erase it.

How to confirm the fix worked

  1. Re-test each changed color pair in the WebAIM Contrast Checker and note the new ratio.
  2. Run Lighthouse or WAVE again on the same pages and make sure the contrast warnings are gone.
  3. Check hover, focus, disabled-looking and error states, plus the mobile layout.
  4. Look at text on images at different screen widths, since the crop changes.
  5. Zoom in to 200% and make sure the text is still readable.

How to stop it coming back

  • Choose a small color palette once and record the passing text and background pairs, for example in a one-page style guide.
  • Test any new color before adding it to a button, banner or theme setting.
  • Tell whoever edits the site (staff, designers, agencies) to pick from the approved colors and not paste in new ones.
  • Re-check after a theme change, redesign or page builder update, since these often reset colors.
  • Run a fresh audit now and then. SiteMonday's week 7 repeats the accessibility audit each year of a subscription, so new issues get flagged. Fixing them stays with you or your developer.

If you also have icon buttons or menus that are hard to use, the related problem icon buttons without a label is worth checking at the same time.

Step by step for your platform

Questions

What contrast ratio do I need to pass WCAG?

For level AA, normal text needs at least 4.5:1 and large text needs at least 3:1. Icons and borders that carry meaning need 3:1.

Does my logo have to meet the contrast rules?

No. Logos and brand names are exempt, as are purely decorative elements and disabled controls. Normal text next to the logo is not exempt.

Is placeholder text in form fields covered?

Yes. Placeholder text is still text and must meet the same ratio, so the usual pale gray often fails. A clear label above the field avoids the issue.

Can I keep my light brand colors?

Often yes. Use the light brand color for backgrounds and large shapes, and a darker shade of it for text and links.

Why does the checker pass but the text still looks hard to read?

Ratios only measure color. Thin fonts, small sizes, busy backgrounds and text over photos can still be hard to read, so test with real eyes on a phone and a desktop.

Will fixing contrast improve my Google ranking?

Not directly. The gain is that more visitors can read and use your pages, and that helps you meet accessibility requirements.

Related problems