Accessibility fix guide
How to fix low color contrast on your website
WCAG AA asks for a contrast ratio of at least 4.5:1 between text and its background, or 3:1 for large text. Light gray body copy, pastel sale badges and white text on photos are where stores fail it most. Low contrast makes text hard to read for people with low vision and for anyone on a phone in sunlight.
Where stores usually fail
- Light gray text for prices, reviews counts and footers.
- Sale and “new” badges in pastel colors with white text.
- Placeholder text in email signups and search boxes.
- Text over hero images and video, where the contrast changes as the image does.
How to fix it
- Darken the text or the background until the pair passes. Small changes usually do it: #999999 on white fails, #767676 on white passes.
- For text on images, put a solid or semi-opaque panel behind the text instead of relying on the photo.
- Fix it in the theme's color settings where you can, so every page picks it up, rather than page by page.
Questions
What contrast ratio do I need?
At least 4.5:1 for normal text and 3:1 for large text (about 24px, or 19px bold) to meet WCAG 2.2 AA.
Does contrast apply to logos?
No. Text that's part of a logo or brand name is exempt. Buttons, prices and links are not.
How do I find every contrast failure?
Run a free scan. Each failure shows the actual colors, the ratio, and what's required.
More guides: How to fix missing alt text on your store · Do accessibility widgets make your site compliant?
Find every issue on your site.
A free scan checks WCAG 2.2 AA and your cookie banner, and shows the fix for each issue. Automated checks catch a share of issues, not all of them.
Free. No account. Results in a couple of minutes.