How to fix button color contrast and low contrast link text
Buttons and links have low contrast when their color is too close to the color behind them. Darken the text or the button background until the ratio is at least 4.5 to 1 for normal text and 3 to 1 for large text and button outlines, then check every state (normal, hover, focus).
Low contrast means the color of your text, or the edge of a button, is too close to the color behind it, so people struggle to read it or even notice it. It is one of the most common accessibility problems on small business sites, and one of the easiest to fix because it usually comes down to changing a few colors in one place.
What the problem looks like
You have probably seen these on your own site without thinking twice:
- A white button label on a pale orange, yellow, light green or light blue button.
- Light grey text on a white background, often used for captions, prices or form hints.
- Links inside paragraphs that are a light blue, or the same grey as the text around them, with no underline.
- A button that looks fine normally but turns pale on hover.
- Text sitting on top of a photo banner, where part of the photo is bright.
On a good monitor in a dim room, these often look elegant. On a phone in sunlight, or for someone with low vision, color blindness or simply older eyes, they can be unreadable.
Why it matters
If visitors cannot read your button label, they do not click it. That is lost enquiries and lost sales, and it affects more people than you might expect: anyone with glare on the screen, a cheap display or tired eyes.
It is also a trust and compliance matter. WCAG 2.2 level AA is the benchmark most accessibility rules and complaints refer to, and contrast is one of its most frequently failed checks. This is not legal advice, but a site that fails basic contrast is an easy target for criticism.
For search, be realistic: contrast is not a major ranking factor. But Lighthouse (Google's own audit tool) flags it, and unreadable calls to action hurt the visits you already earn.
The numbers to aim for
Contrast is measured as a ratio from 1 to 1 (no difference) up to 21 to 1 (black on white). WCAG sets these minimums:
| What | Minimum ratio | WCAG rule |
|---|---|---|
| Normal text, including button labels | 4.5 to 1 | 1.4.3 |
| Large text (about 24px regular or 18.66px bold, and bigger) | 3 to 1 | 1.4.3 |
| Button border or input outline, when it is needed to see the control | 3 to 1 | 1.4.11 |
| A link inside a paragraph told apart only by color | 3 to 1 against the surrounding text, plus a second cue on hover and focus | 1.4.1 |
The simplest approach for links is to underline them. Then you only need the link text itself to reach 4.5 to 1 against the background. Disabled buttons are exempt, but do not rely on that for buttons people are meant to click.
How to check your site for free
- WebAIM Contrast Checker. Type the text color and the background color as hex codes (for example
#767676and#FFFFFF) and it shows the ratio and pass or fail. - Chrome DevTools. Right click a button, choose Inspect, then click the small color square next to the
colorproperty. The picker shows the contrast ratio and whether it passes. - Lighthouse. In Chrome DevTools open the Lighthouse tab, tick Accessibility and run it. Look for the item saying background and foreground colors do not have a sufficient contrast ratio.
- WAVE or axe DevTools. Both are free browser extensions that list contrast errors page by page.
Test more than the resting state. Hover over buttons, tab to them with the keyboard, and check text over images at the brightest spot behind the words. A quick extra test: take a screenshot, turn it to greyscale, and see which buttons disappear.
How to fix it in general
- List the failing pairs. Write down each text color and background color that fails, and where it is used.
- Darken, keep the hue. You rarely need a new brand color. Make the same color darker until it passes. For reference,
#767676on white is about 4.5 to 1, the lightest grey that passes. - Or flip the button. If your brand color is light, keep it as the background and use dark text on it instead of white.
- Fix it in one place. Change the color in your theme's global color or button settings, not button by button, so the fix applies everywhere.
- Underline links in body text. It is the clearest signal and removes any need to judge link color against text color.
- Fix hover and focus states. They must pass too. Do not let a hover state lighten a button below the limit. If your focus outline is missing or faint, see missing focus indicator.
- Protect text over images. Add a dark overlay to the image or put the text on a solid panel.
Where to change it on common platforms
Menu names vary by version and theme, so treat these as starting points.
- WordPress: usually Appearance, then Customize, then Colors, or in block themes Appearance, then Editor, then Styles, then Colors. Page builders have their own color settings. See the WordPress guide.
- Shopify: Online Store, then Themes, then Customize, then Theme settings, then Colors. Many themes use color schemes that set button and text colors together. See the Shopify guide.
- Wix: the Site Design or Site Colors panel in the editor, plus the Design option on each button.
- Squarespace: Design, then Site Styles, then Colors and Buttons (in version 7.1).
- Webflow: the Style panel on a selected button, or color variables if your site uses them.
- Elementor: Site Settings, then Global Colors, and Theme Style for buttons (depending on your Elementor version).
- WooCommerce: it inherits colors from your WordPress theme, so start there, then check the cart and checkout pages.
If a color will not change, a custom CSS rule or an older setting may be overriding it. That is a good moment to ask your developer.
How to confirm the fix worked
- Re-check each changed pair in the WebAIM Contrast Checker or DevTools.
- Run Lighthouse again and confirm the contrast item is gone.
- Tab through the page and hover over buttons to check every state.
- Look at other page types: checkout, contact forms, popups, the cookie banner, the footer and the 404 page. These are often styled separately.
- View the site on your phone with the screen brightness turned down.
SiteMonday's week 7 accessibility audit (WCAG 2.2) is one way to get this found for you: it reports contrast problems with a ranked fix list. You can read more on the week 7 page. Fixing is still up to you or your developer.
How to stop it coming back
- Pick a palette of checked pairs. Write down which text and background combinations are approved, with their ratios, and give it to anyone who edits the site.
- Check before you publish. Any new button, banner or campaign color gets a 30 second check first.
- Watch third party widgets. Chat bubbles, cookie banners and booking tools often bring their own colors. Check their settings.
- Recheck after theme changes. A theme update or redesign can reset your colors.
- Brief designers with numbers. Ask for 4.5 to 1 on text and 3 to 1 on button outlines from the start.
Step by step for your platform
- Low contrast buttons and link text on WordPress
- Low contrast buttons and link text on Shopify
- Low contrast buttons and link text on Wix
- Low contrast buttons and link text on Squarespace
- Low contrast buttons and link text on Webflow
- Low contrast buttons and link text on Elementor
- Low contrast buttons and link text on WooCommerce
Questions
What contrast ratio do buttons need?
Button text needs 4.5 to 1 against the button background, or 3 to 1 if the text is large (about 24px, or 18.66px bold). If the button edge is what makes it recognizable as a button, that edge needs 3 to 1 against the page.
Does white text on my brand color usually pass?
Not always. White on a mid or light color (many oranges, yellows, light greens and light blues) often fails 4.5 to 1. Check the exact hex codes in a contrast checker and darken the background if needed.
Do links need to be underlined?
Not strictly, but it is the safest choice. If you rely on color alone, the link color needs 3 to 1 against the surrounding text plus another cue on hover and focus, and the link must still be readable against the background.
Do disabled buttons have to pass contrast?
No, WCAG exempts inactive controls. But if a button looks faded and people are still expected to click it, it should be treated as active and made readable.
Is contrast a Google ranking factor?
Not a major one. It matters because unreadable buttons lose clicks, and Lighthouse reports contrast failures as accessibility errors.
Can I fix this without a developer?
Often yes. Most platforms let you change global button and text colors in the theme or site design settings. A developer may only be needed if custom code overrides those colors.