Skip to content
FunnelGuard

Fix guide by FunnelsGuard

CTA button contrast too low: fix white text on light yellow

PRF-301Medium impactCould addBy FunnelGuardPublished Updated
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.

Where a low-contrast CTA breaks the funnel
  1. Landing pageVisitor arrives from an ad or search
  2. CTA buttonWhite text on light yellow is hard to read
  3. Form or checkoutNever reached by some visitors
  4. Lead or saleNot recorded

The visitor never reads the button label, so later steps are lost.

CTA clicks by button contrastExample numbers
CTA clicks by button contrast (example)White on light yellow (1.2:1): 2.1 % of visitors who click; Dark text on yellow (14:1): 2.9 % of visitors who click0122.12.9White on light yellow…Dark text on yellow (…% of visitors who click

Example: illustrative numbers only, showing how a readable button could lift clicks on the same page.

How to check if your site has it

Measure your button contrast
  1. Find the two colours

    In Chrome, right-click the button, choose Inspect, and read the color and background-color values in the Styles panel.

  2. 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).

  3. 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.

  4. 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.

  5. 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.

Example colour pairs and their approximate contrast ratios.
TextBackgroundApprox. ratioPasses 4.5:1?
#FFFFFF#FFF1761.2:1No
#1A1A1A#FFF17615:1Yes
#FFFFFF#B453095:1Yes
#FFFFFF#1D4ED86.7:1Yes
Accessible CTA button with dark text on yellowcss
.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;
}
Change the button colours on your platform
  1. 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.

  2. Check page builders

    Elementor, Divi and similar builders set button colours per widget. Edit the button and change the Text Color and Background Color.

Button before and after

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

Confirmation checks
  • 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.

Prevention habits
  • 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.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.