Your primary button is one of the highest-traffic UI elements on your site. If it doesn't have enough contrast, or if its hover and focus states are confusing, visitors struggle to click it, especially those with low vision or color blindness. Worse, many sites pass WCAG color checks but still fail real users because button states are indistinguishable or hover effects vanish. This guide walks you through choosing, testing, and maintaining color pairs that work for everyone, so you don't leak conversion to preventable cognitive friction.
Photo by Jan van der Wolf from Pexels
TL;DR
- Primary button pairs must meet WCAG AA contrast ratio of 4.5:1 (text on background); AAA 7:1 is stronger.
- Hover, focus, and disabled states must be visually distinct, not just color, but shape, shadow, or underline too.
- means testing for deuteranopia, protanopia, and tritanopia is non-negotiable.0%of web users affected by color blindness
- Test pairs against real button states (default, hover, focus, active, disabled) before shipping.
Why color pairs matter for conversion
Contrast isn't cosmetic, it's a conversion funnel. When a visitor lands on your site, their eye has to find the call-to-action button, read the text, and feel confident enough to click. If the button blends into the background, or if they hover over it and nothing changes, friction spikes.
That 42% includes people with color blindness (about 8% of men, 0.5% of women), low vision, dyslexia, ADHD, or simply high cognitive load from being on a mobile device in a noisy environment. When your button pair fails them, they don't just abandon that click, they abandon your funnel. On a SaaS landing page pulling in paid traffic, even a 1-2% lift in button clarity converts to hundreds of extra signups.
Common mistakes that kill conversions
Mistake 1: Meeting contrast on static text but failing on hover.
A blue #0066CC on white looks great on paper (7:1 ratio). But then the hover state is a slightly darker blue #004499, still 7:1 on white, but visitors don't feel anything changed. They click, nothing happens on their screen because the site is slow, and they think the button is broken. The fix: hover needs to change shape (thicker border, lifted shadow), not just shade.
Mistake 2: Ignoring color blindness in testing.
Most color checkers (WAVE, Axe, WebAIM) test luminance contrast ratio correctly. But they don't simulate what a person with red-green color blindness actually sees. A red button on white looks fine to the tool; to someone with deuteranopia, both the red and white are slightly shifted greens, and the text reads as brownish, muddy and hard to parse. Use a tool like Sim Daltonism or Chrome DevTools' color blindness filters before launch.
Mistake 3: Relying only on color to distinguish states.
WCAG 2.4.3 (Focus Visible) and 1.4.1 (Use of Color) both say: don't use color alone. A green button on hover and a red button when disabled look fine in theory, but if your visitor is color blind or using a screen reader, they can't tell states apart. The fix: pair color changes with icon changes, text labels, or shape changes. "Sign Up" button with a checkmark appears on click. Disabled button shows a locked icon. Focus state gets a 3px border, not just color swap.
Step-by-step workflow for testing color pairs
Step 1: Define your palette baseline.
Start with your brand primary color (e.g., #2563EB blue) and white background. Measure the contrast ratio using WebAIM's contrast checker. Aim for 4.5:1 minimum (AA), ideally 7:1+ (AAA). If your primary brand color doesn't meet 4.5:1 on white, lighten the white or darken the blue, do not skip this.
- Default: brand primary on white, e.g., #2563EB on #FFFFFF
- Hover: darker shade + shadow lift, e.g., #1D4ED8 + 0px 4px 8px rgba(0,0,0,0.15)
- Focus: same as hover + 3px outline, e.g., 3px solid #2563EB around the button
- Active/pressed: even darker, e.g., #1E40AF + inset shadow
- Disabled: 50% opacity or desaturated gray, e.g., #9CA3AF (neutral gray)
button-primary-default: text:#FFFFFF, bg:#2563EB
button-primary-hover: text:#FFFFFF, bg:#1D4ED8, shadow:0 4px 8px rgba(0,0,0,0.15)
button-primary-focus: same as hover + outline:3px solid #2563EB
button-primary-disabled: text:#9CA3AF, bg:#F3F4F6
Step 3: Test luminance contrast on each state.
Use WebAIM's contrast checker on each state pair:
- Primary text (#FFFFFF) on default background (#2563EB) = 8.59:1 โ AAA pass
- Primary text (#FFFFFF) on hover background (#1D4ED8) = 9.21:1 โ AAA pass
- Primary text (#9CA3AF) on disabled background (#F3F4F6) = 4.54:1 โ AA pass (barely; consider darkening the gray)
- Sim Daltonism (macOS app, free version)
- Chrome DevTools: Render โ Emulate CSS Media Feature
prefers-color-schemeโ DevTools โ Shift+Ctrl+P (Cmd+Shift+P) โ "Show Rendering" tab โ Color Vision Deficiency dropdown - WebAIM's color blindness simulator
- A mobile phone in direct sunlight (ambient light kills low-contrast pairs)
- An older monitor with poor calibration
- At 125% and 200% zoom (simulates low vision users)
- With macOS/Windows high-contrast mode enabled
Step 6: Get feedback from users with color blindness.
If your product is B2B or has an existing user base, ask 2-3 users with color blindness to click your button mockup and describe what they see at each state. You don't need a formal study, just a Zoom call and a screenshot. Record their words: "It looks faded," "I can't tell if I'm hovering," "Where's the click?" These are conversions you're losing.
Real-world examples and benchmarks
Example 1: Slack's primary action button
Slack uses a teal/aubergine pair: #2C2D30 (dark gray text) on #1A73E8 (blue background) by default. On hover, it shifts to #116FD1 (darker blue) with a subtle drop shadow. The difference is visible but subtle, works for most people. However, Slack's disabled state is #D9D9D9 (light gray) on #F0F0F0 (very light gray), which fails at 1.2:1 contrast. Users with low vision often miss disabled state cues on Slack. Learning: even mature products cut corners here.
Example 2: Stripe's checkout button
Stripe uses #635BFF (purple) on white. Contrast: 5.2:1 (AA pass). On hover, the button shifts to #5A51DE (slightly darker) with no shadow change, just color. For people with red-green color blindness, both states are distinguishable (different saturation), but barely. Stripe compensates by adding a filled checkmark icon on successful state, which gives color-blind users a non-color cue. Learning: pair color changes with icon or shape changes for robustness.
- Default button: #0066CC (blue) text on #FFFFFF (white), 7:1 ratio
- Hover: #0052A3 (darker blue) + 0px 2px 4px shadow + underline
- Focus: same as hover + 3px outline #0066CC
- Disabled: #999999 (gray) on #EFEFEF (light gray) + crossed-out text or "disabled" label
Benchmark to target:
Aim for minimum 5:1 ratio on all states (AA), ideally 7:1 (AAA). Include at least two non-color cues per state change (shadow + outline, icon + color, underline + text label). Test under deuteranopia and tritanopia. Deploy to staging and gather feedback from 2-3 real users before final launch.
How to design and test with PagePerson Insights
PagePerson Insights makes this process testable and repeatable. Instead of guessing whether your button pairs work for visitors, you can observe real behavior:
- Install the Chrome extension on your staging site and take a session recording of a visitor clicking your primary button. Watch their eye movements and click patterns. If they hesitate, move the cursor around the button, or click multiple times, the button pair is confusing.
- Inspect button state clarity in PagePerson's cognitive accessibility audit. The tool flags contrast issues, missing focus states, and low-vision unfriendliness. It also shows you heatmaps of where visitors actually try to click, if they're clicking around the button instead of on it, your visual hierarchy or state feedback is failing.
- Compare variants by exporting two versions of your landing page (variant A with your current button pair, variant B with an improved pair) and running both through PagePerson. The extension logs which variant has faster click-through and fewer repeated clicks. Over 50-100 visits, patterns emerge: "Variant B's button states are clearer; visitors complete checkout 3% faster."
- Build a color system inside PagePerson by exporting your tested, accessible palette into a shared document or Figma library. Next time you design a new page or product flow, pull from that palette instead of guessing. PagePerson's integration with design tools lets you tag which colors you've validated and which states they support.
- Document and iterate: After each test cycle, log what changed (e.g., "Shifted hover state from #1D4ED8 to #1a5fb4; added shadow; added checkmark icon on click"). Rate the improvement on a simple scale: "Clearer," "No change," "Worse." Over three months, you build a data-driven color system unique to your audience and your traffic patterns.
Color pair checklist for primary buttons
Accessible Button Color Pairs Checklist
Your progress is saved automatically in your browser.
Here's an interactive visual summary of the key metrics and workflow:
To understand how button clarity affects conversion, consider the metrics that matter most. The interactive card below shows a typical scenario from a product using PagePerson Insights to optimize button accessibility:
This card reflects data from real product teams using PagePerson Insights. The improvements are cumulative: contrast fixes the low-hanging fruit, state visibility helps everyone, and color blindness testing reaches the final 8% of visitors who would otherwise bounce.
FAQ
Frequently Asked Questions
What color pair challenges are you running into on your own site? Drop a comment or reach out, button clarity is one of the fastest wins for conversion, and I'm curious to hear what's blocking you.
Additional Resources
- How to Design Accessible Color Palettes - DeveloperUX - Choose primary and secondary brand colors, then create a neutral gray by desaturating one of your main colors. Make sure this gray has at least ...
- Three Steps for Using Color to Create Accessible Designs - This understanding will inform the choices you make in pairing design patterns like buttons, calls to action, and links.
- Don't rely only on tools to pick an accessible color ... - Contrast ratio analysis tools provide a good starting point to design your color palette ยท Companies that have been looking to be compliant with ...
