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.
  • 0%
    of web users affected by color blindness
    means testing for deuteranopia, protanopia, and tritanopia is non-negotiable.
  • 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.

0%
of website visitors may struggle with cognitive accessibility

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.

of color contrast tools that don't simulate color blindness
0%

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.

Step 2: Create button states explicitly. Define five states in your design system:
  • 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)
Document each state as a variable in your design system (Figma, Storybook, etc.). Example:
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)
Step 4: Simulate color blindness. Open your button mockup in Figma or export as PNG. Use:
  • 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
Test all five states under deuteranopia (red-green, most common), protanopia (red blindness), and tritanopia (blue-yellow, rarest). If states disappear or blend together under any simulation, redesign immediately. Step 5: Test on real devices. Lighthouse and browser tools are great, but deploy your button states to a staging site and test on:
  • 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
If states vanish or flicker, you have a problem.

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.

Example 3: Accessible design pattern from Inclusive Components Inclusive Components recommends:
  • 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
This pattern passes WCAG AAA contrast, remains distinguishable under all color blindness types, and provides multiple cues (color + shadow + underline + label) so users with different needs all perceive state changes.

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:

  1. 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.
  1. 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.
  1. 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."
  1. 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.
  1. 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.
The workflow saves you guesswork. Instead of relying on a generic color blindness simulator, you see real visitors struggling or sailing through your button states, and you iterate on that feedback.
Key takeaway: Accessible color pairs aren't a compliance checkbox, they're a conversion lever. When your primary button pair meets contrast standards, provides multiple state cues (not just color), and has been tested with real users and color blindness simulations, visitors click faster and convert at higher rates.

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:

Conversion Improvement: Before & After Accessible Button Pairs

Baseline click-through rate 12.3%
After contrast fix (AA) 13.1% +0.8%
After adding hover + focus states 14.7% +2.4%
After color blindness testing & icon cues 15.8% +3.5%
Visitors needing accessibility help 42%

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

Anyone designing or maintaining a website's primary buttons and links: product managers, designers, developers, and accessibility leads. If you own conversion metrics and traffic, button clarity affects your bottom line. This guide is especially relevant if you run paid acquisition, even 1-2% click-through improvements compound over thousands of visitors.
Start with Step 1: test your current primary button's contrast ratio on white (or whatever background you use) using WebAIM's contrast checker. If it's below 4.5:1, darken or lighten the colors immediately. Then move to Step 2 and define your five button states explicitly. Most teams skip this and pay for it in UX debt.
PagePerson lets you record real visitor behavior on your button and see where they hesitate, click repeatedly, or give up. It also runs cognitive accessibility audits that flag contrast issues and missing state cues. Use it to test variants (current button pair vs. new pair) and measure which one converts faster over 50-100 visits. Export your validated color palette into your design system so every future button uses the same accessible foundation.
Not quite. Dark text on light background helps with contrast but says nothing about hover, focus, and disabled states. A visitor needs to see that the button changed when they hovered or focused, otherwise they think it's broken. Add shadow, underline, or outline on hover. Add an icon or label on disabled. Contrast is table stakes, not the whole game.
You have three options: (1) lighten the white background or darken the brand color slightly (often unnoticeable to the eye but huge for accessibility), (2) use a slightly different shade of your brand color for the button specifically (e.g., brand blue #0066CC for logo, darker #0052A3 for buttons), or (3) add a colored border or background behind the text to boost contrast. Most brands can hit 7:1 with option 1 or 2 without losing brand identity.
Test it. Download Sim Daltonism (free, macOS) or use Chrome DevTools' color vision deficiency simulator (Windows/Mac/Linux). Open your button mockup or staging site and view it under deuteranopia, protanopia, and tritanopia. If button states become indistinguishable or text fades, redesign. Then ask 2-3 real users with color blindness to click and describe what they see. Their feedback beats any tool.

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