How to Check WordPress Colour Contrast

Check text, buttons and fields on the public page, measure contrast against WCAG thresholds and retest the colours after you fix them.
Brass letterpress shapes against charcoal beside a low-contrast embossed impression

To check WordPress colour contrast, open the public page and compare each text colour with the background it actually sits on. For WCAG 2.2 Level AA, aim for at least 4.5:1 for regular text and 3:1 for large text. Start with button labels, links, form instructions and text over photos. Those are the places where faint text can stop someone completing a task.

Measure the rendered colours · Work through an example · Check controls and images · Fix and retest

Measure WordPress colour contrast on the public page

Open a page customers use, such as a service page with a quote button. Identify the line the customer needs to read. In Chrome, right-click the text and choose Inspect. Use the element picker if you land on the wrong element. In the Elements panel, find the active text colour and open its colour swatch. Chrome’s colour picker shows a contrast ratio when it can determine the relevant background. Its contrast testing guide also explains how to surface possible issues with CSS Overview or Lighthouse.

Write down the page, element and state you checked, plus the foreground, background and ratio. Check the rendered page at a phone width as well. A normal desktop button and a sticky mobile button may use different styles. If the tool cannot determine the background, examine the effective colours manually or simplify the background and test again.

Use the right threshold for the text size

Regular text, including most labels and body copy, needs at least 4.5:1. Large text needs at least 3:1. WCAG describes large text as at least 18 pt or 14 pt bold, approximately 24 CSS pixels or 18.7 CSS pixels bold. Use the actual rendered size and weight. A heading tag can still be styled small. See the W3C guidance on minimum text contrast.

The same letters printed faintly in light grey and clearly in charcoal on two cream proofs

Contrast chart for grey text on white. #999999 is 2.849 to 1, #777777 is 4.478 to 1, and #666666 is 5.742 to 1.

Take a 16-pixel “Request a quote” label on a white button. Grey #999999 measures 2.849:1 and misses both text thresholds. Grey #777777 measures 4.478:1. It meets the large-text threshold, but the 16-pixel label still falls short of 4.5:1. Grey #666666 measures 5.742:1 and meets both thresholds. The chart shows how close #777777 comes. Use its measured ratio to decide. If the button background changes, measure the new colour pair.

Check field boundaries, focus and text over photos

A form label and the outline that identifies its empty input have different jobs. Check the label against the text threshold. If the outline is needed to identify the field, check it against the adjacent colour at 3:1. Also look at essential icons and visible cues that identify a selected or focused state. The W3C guidance on non-text contrast explains which visual cues this covers. Use the WordPress keyboard accessibility test to find where focus actually goes.

Check text on a photo or gradient where the foreground and background are closest in brightness. Look directly behind the letters and repeat at a narrow width because the image crop can move. Try a solid text panel, a stronger overlay or a different placement. Measure again after the change. A single sample from the dark corner of a bright hero image can miss the weakest spot behind the text.

Pale lines over a landscape stand out more clearly where a dark panel covers the photograph

Fix the controlling style and retest the places it appears

If just one block is affected, change its text or background in that block’s colour controls. If the same button or link style is weak across the site, fix the shared style in staging and retest several pages. Block themes expose shared settings under Appearance, Editor, Styles. Classic themes and page builders may expose them elsewhere. See the WordPress Styles documentation.

Load the updated live page while signed out. Recheck the original elements at desktop and mobile widths, including hover, focus, and error states where they appear. Check that inline links are distinguishable in the surrounding copy and that errors have words as well as a colour cue. A clean automated scan gives you a starting point. Manual checks still matter for responsive images, states and the paths people actually use.

If several WordPress templates share the same faint labels, form controls or text over images, send DriftFix the affected URLs and examples.

Tell Me About Your Website

Just give me the basics. I’ll review your enquiry and we can take it from there.
WhatsApp