← Blog

EqualFix

Low Colour Contrast in WordPress: How to Check Your Site and Fix It

What a colour contrast failure is, why light grey text fails so many sites, how to measure it, and how to fix it without changing your design.

Colour contrast is the difference in brightness between text and the background behind it. WCAG sets the minimum at a ratio of 4.5 to 1 for normal text and 3 to 1 for large text. Light grey text on a white background, the default look of a lot of modern themes, usually lands near 2 to 1. People with low vision cannot read it. In bright light, most people cannot read it either.

Contrast failures are the most common accessibility problem on the web. The WebAIM Million study of the top one million home pages finds them on the large majority of sites, year after year.

How to check by hand

Pick the lightest text on the page, usually body text, footer text, or placeholder text in form fields. Use a contrast checker tool and enter the text colour and the background colour. The tool returns the ratio. Below 4.5 to 1, normal text fails.

The manual route has two limits. You have to find the colour values in your theme settings or stylesheet, and you have to repeat the check for every colour pair on the page: headings, links, buttons, menus, footers, and hover states.

How to fix it

Darken the text colour or darken the background until the pair passes. Small moves are usually enough. A grey that fails at 2.8 to 1 often passes two or three shades darker, and the design looks almost the same. Keep a record of the pairs you changed, because the same colours usually appear in several places.

What EqualFix does with this problem

The free EqualFix plugin measures contrast wherever a page's own styles name both the text colour and the background colour, and reports every pair that fails. Where the plugin cannot measure, because a colour comes from an image or an outside stylesheet, the finding is marked for human review instead of being guessed at.

With Pro, the fix is computed for you. The plugin calculates the nearest shade of your own colour that passes and applies that shade when you press the button. Your design keeps its colour, one step darker. The honest limits of contrast checking are covered in What an Accessibility Audit Actually Checks.

You can check one page right now with the free scan on this site. It runs 12 checks and shows the findings on screen. Run the free scan For the whole site, the free plugin runs all 18 checks on every public page. Install EqualFix free

Start free. Stay because it works

Full accessibility audit + the five automatic fix types. No credit card. The audit is free forever.

Scan my site free