On this page
What this issue is
Contrast ratio compares the brightness of two colours, from 1:1 (identical) to 21:1 (black on white). White on light yellow is one of the weakest pairs you can pick, because yellow is already very bright. For example, white on #FFF176 gives roughly 1.2:1.
WCAG 2.2 (the Web Content Accessibility Guidelines) sets two relevant rules. Success criterion 1.4.3 asks for 4.5:1 for normal text, or 3:1 for large text (about 24px, or 18.5px bold). Criterion 1.4.11 asks for 3:1 between a button's edge or fill and the page around it, when that shape is what identifies it as a button.
Why it costs you leads or sales
The CTA is the one element you need people to notice and read. If the label washes out, some visitors will not see what the button does. Others will hesitate or leave. It hits hardest for people with low vision or colour deficiency, for older visitors, and for anyone on a dim screen or in bright light.
- Landing pageVisitor arrives from an ad or search
- CTA buttonWhite text on light yellow is hard to read
- Form or checkoutNever reached by some visitors
- Lead or saleNot recorded
The visitor never reads the button label, so later steps are lost.
Example: illustrative numbers only, showing how a readable button could lift clicks on the same page.
How to check if your site has it
Find the two colours
In Chrome, right-click the button, choose Inspect, and read the
colorandbackground-colorvalues in the Styles panel.Use the DevTools contrast picker
Click the text colour swatch in the Styles panel. Chrome shows the contrast ratio and a pass or fail mark for AA (4.5:1) and AAA (7:1).
Check the button against the page
Compare the button fill with the section background behind it. You want at least 3:1 if the fill is what marks the button.
Test the other states
Hover, focus, active and disabled states often use different colours. Check each one, and check the button on mobile, where themes sometimes change styles.
Run an automated scan
Lighthouse (in Chrome DevTools) and the WAVE extension both report low-contrast text. They can miss text over images or gradients, so still check by eye.
How to fix it
You have two options. Keep the yellow and use dark text, or keep white text and use a darker button colour. Dark text on yellow is usually the easiest way to stay on brand.
| Text | Background | Approx. ratio | Passes 4.5:1? |
|---|---|---|---|
| #FFFFFF | #FFF176 | 1.2:1 | No |
| #1A1A1A | #FFF176 | 15:1 | Yes |
| #FFFFFF | #B45309 | 5:1 | Yes |
| #FFFFFF | #1D4ED8 | 6.7:1 | Yes |
.cta-button {
background-color: #ffd43b;
color: #1a1a1a;
border: 2px solid #1a1a1a;
}
.cta-button:hover,
.cta-button:focus-visible {
background-color: #ffc107;
color: #000000;
}
.cta-button:disabled {
background-color: #e5e5e5;
color: #595959;
}Use the Site Editor or Customizer
In block themes, open Appearance > Editor > Styles > Blocks > Button and set text and background colours. In classic themes use Appearance > Customize > Colors, or add CSS under Additional CSS.
Check page builders
Elementor, Divi and similar builders set button colours per widget. Edit the button and change the Text Color and Background Color.
Edit theme colour schemes
Go to Online Store > Themes > Customize > Theme settings > Colors. Change the button background and button label colours in the scheme used by the section.
Check each section
Some sections use their own colour scheme. Open the section and confirm the button uses a passing pair.
Edit the button style
Select the button, open the Style panel, and change Typography colour and Backgrounds colour. Edit the class so every instance updates.
Check state styles
Use the state dropdown to set Hover and Focused colours that also pass.
Edit the button element
In the funnel or website builder, click the button, then change Text Color and Background Color under the button's style settings.
Repeat on every page
Buttons are set per element, so update each page, popup and form submit button.
Edit button design
Select the button, click Design, and change Fill and Text colours for the Regular, Hover and Disabled states.
Edit site styles
Open Pages > Site Styles > Buttons (or the section's Colors setting) and choose a colour theme where button and text colours contrast. Squarespace 7.1 sets this per section theme.
Update your stylesheet
Change the colours in the button class (see the CSS above), use a CSS variable if the colour is shared, and rebuild and deploy.
Before
- White label on #FFF176 yellow
- Ratio about 1.2:1, fails AA
- No border, button blends into the page
After
- Dark #1A1A1A label on yellow
- Ratio above 4.5:1, passes AA
- Visible border or fill with 3:1 against the page
How to confirm it's fixed
- Label against fill reads at least 4.5:1 in DevTools (3:1 if the text is large)
- Button fill or border reaches 3:1 against the surrounding background
- Hover, focus, active and disabled states all pass
- Mobile layout uses the same passing colours
- Lighthouse accessibility audit shows no contrast errors on the page
- Every other page, popup and form with the same button style is updated
How to prevent it happening again
Contrast problems usually come back when someone picks a new brand colour, installs a theme update or builds a landing page from a template. Set the button colours once in a shared style, and check new pages before launch.
- Store approved button colour pairs in your design guide, with their ratios
- Use one shared button class or theme setting instead of per-page colours
- Add a contrast check to your page launch checklist
- Run Lighthouse or WAVE on key landing pages after each redesign
- Re-check buttons after theme or page builder updates
How FunnelGuard handles this
FunnelGuard does not check button colour contrast today. It is a possible future check, not a current feature.
What FunnelGuard does do is run your real customer journeys with a robot visitor on a schedule. It checks that the CTA can be found and clicked, that each step loads, that tracking hits reach platforms such as GA4, Google Ads and Meta, and that test leads reach your inbox and CRM. If a button is covered or a step fails, you get one alert with a screenshot and a likely cause. That tells you the journey works, but not whether the label is readable.
To watch for contrast problems, run Lighthouse or WAVE on your key landing pages after every design change, and add the contrast check above to your launch checklist. The free FunnelGuard read-only website audit can sit alongside that, though it does not test contrast.
Questions people ask
What contrast ratio does a CTA button need?
Button text needs at least 4.5:1 against the button fill, or 3:1 if the text is large (about 24px, or 18.5px bold). If the button shape is what shows it is clickable, the fill or border also needs 3:1 against the surrounding background under WCAG 2.2.
Is white text on a yellow button accessible?
Usually not. White on light yellow gives a ratio around 1.1:1 to 1.5:1, far below the 4.5:1 needed. Dark text such as #1A1A1A on yellow passes comfortably, as does white on a much darker colour.
How do I check the contrast of my button?
Right-click the button in Chrome, choose Inspect, and click the text colour swatch in the Styles panel. Chrome shows the ratio and whether it passes AA. You can also use Lighthouse or the WAVE extension.
Does low button contrast hurt conversions?
It can. If visitors cannot easily read the label, some will hesitate or miss the action. The effect is strongest for people with low vision, older users and anyone on a dim or sunlit screen. Test your own page to see the real effect.
Do hover and disabled states need to meet contrast rules too?
Hover and focus states that show text should meet the same 4.5:1 rule, and a visible focus indicator needs 3:1. Disabled controls are exempt from WCAG contrast rules, but a very faint disabled button can still confuse people, so keep it readable.
Do I have to change my brand colour to fix button contrast?
Often not. Keep the brand colour for the fill and change the label to near-black, or add a dark border. If your brand colour is the text colour, darken it until it reaches 4.5:1 against the background.
Does FunnelGuard check button colour contrast?
No. FunnelGuard does not check contrast today, though it may in future. It does run your journeys to confirm buttons can be clicked and steps complete. Use Lighthouse or WAVE for contrast.
Related issues
- PRF-300Text colour contrast below 4.5:1Fix guide
- PRF-310Required fields indicated by colour onlyFix guide
- PRF-311Focus outline removed (outline:none)Fix guide
- PRF-322Buttons made from divs without role/keyboard supportFix guide
- PRF-307Form errors shown only in red with no textFix guide
- PRF-302Images missing alt textFix guide