Reviewed October 12, 2026
Are your Shopify store buttons readable? A color contrast check
Low-contrast buttons are one of the most common accessibility failures on Shopify stores. How to check your theme contrast, the ratios that actually matter, and quick fixes that keep buttons readable for everyone.
Why button contrast fails so often
Brand colors are the usual culprit. A marketing team picks a beautiful light accent color, the theme applies it to button backgrounds with white text, and nobody checks whether anyone can actually read the words. Pastel buttons with white text are the classic failure: they look airy in a design mockup and vanish for anyone with less than perfect vision.
Hover and disabled states make it worse. A button that passes contrast at rest can fail on hover when the background lightens, and disabled buttons are often exempt from scrutiny entirely. Ghost buttons, the outlined style with no fill, fail constantly because thin colored text on a white background rarely hits the required ratio.
The ratios that matter
The standard is 4.5 to 1 for normal text, which includes button labels. That ratio comes from the Web Content Accessibility Guidelines and is the threshold at which text stays readable for people with moderately low vision. Large text, roughly 18pt and up, gets a more lenient 3 to 1, but most button labels are not large text.
Non-text elements have their own bar: user interface components like button boundaries and focus indicators need 3 to 1 against adjacent colors. So a button needs readable text and a distinguishable shape. A button that blends into the background fails even if its label is technically legible.
How to check your store in ten minutes
Open your storefront in a browser, right-click a button, and inspect it. Browser developer tools now include a contrast readout in the color picker: select the text color and it will tell you the ratio against the background on the spot. Check your primary buttons, secondary buttons, and the add-to-cart button specifically.
For a full sweep, run an automated checker like axe or WAVE over your homepage, a product page, and your cart. They will flag every contrast failure with the exact ratio and the elements involved. Ten minutes of this usually surfaces a clear list: the same two or three button styles failing everywhere.
Fixes that keep your branding
You rarely need to abandon brand colors. Darkening the button background by one or two shades usually pushes the ratio over 4.5 to 1 while keeping the brand recognizable. If the background cannot change, darkening the text works: deep charcoal text on a pastel button often passes where white text fails.
Other options: add a darker border so the button shape meets the 3 to 1 component ratio, make the label bold, which slightly improves perceived contrast, or reserve the light brand color for decorative elements and use a darker variant for anything clickable. Accessibility and branding negotiate fine once you know the numbers.
Do not forget focus and hover
Keyboard users navigate by focus indicators, usually an outline around the focused button. If your theme removes the default outline and replaces it with something subtle, check that the replacement meets 3 to 1 against the background. An invisible focus indicator strands keyboard users just as badly as an unreadable label.
Test every state: rest, hover, focus, active, and disabled. A button that passes at rest but disappears on hover is still a failure for the people hovering it. This takes five minutes with a keyboard and a contrast checker, and it is the difference between a quick fix and a demand letter citing your buttons.
Frequently asked questions
What is the minimum color contrast ratio for buttons?
Button text needs a contrast ratio of at least 4.5 to 1 against its background under WCAG AA, the standard most lawsuits reference. Large button text gets a 3 to 1 threshold, but most button labels count as normal text. The button shape itself needs 3 to 1 against the surrounding page.
Do disabled buttons need to meet contrast ratios?
Technically no: WCAG exempts inactive user interface components from the contrast requirement. But a disabled button that is completely unreadable still confuses shoppers, and many auditors flag them anyway. Keep disabled states visibly muted but still decipherable.
How do I check contrast in my Shopify theme?
Use your browser developer tools: inspect the button, open the color picker on the text color, and read the contrast ratio it calculates against the background. For a whole-site check, run the free axe or WAVE browser extension on your homepage, product page, and cart pages.
Does button contrast affect sales or just accessibility?
Both. Unreadable buttons hurt everyone in bright sunlight, on dimmed phone screens, and with aging eyes, not just people with diagnosed vision loss. Clearer buttons get clicked more. Contrast fixes are one of the rare changes that reduce legal risk and lift conversion at the same time.