Contrast Checker for Buttons
Buttons carry your most important actions, so their labels must be readable at a glance. Check the label against the button fill, then check the button itself against the page, and repeat for each state your design uses. The checker shows all four WCAG results at once.
Two contrast checks every button needs
A button has two separate contrast jobs. First, the label text must contrast with the button fill: 4.5:1 for normal-size text under WCAG 2.1 success criterion 1.4.3, or 3:1 if the label counts as large text. Second, under criterion 1.4.11, the visual edge that tells people the button exists must reach 3:1 against the surrounding background. That edge can be the fill itself or a border. A pale gray button on a white page can have a perfectly readable label and still fail, because nobody can see where the button ends.
Check both pairs here: label versus fill, then fill (or border) versus page background.
Popular button colors that fall short
Bright, saturated brand colors are the usual problem. White text on a mid blue such as #3B82F6 measures about 3.68:1, which fails for normal text, while the darker #2563EB reaches about 5.17:1 and passes. White on pure red (#FF0000) lands at 4.00:1, and white on a bright orange or green is lower still. Often the fix is simply moving the fill one or two shades darker, or switching to dark label text on light, bright fills.
Questions
Does button text count as large text?
Only if it is at least 24px (18pt) regular or about 18.66px (14pt) bold. Most button labels are 14–16px, so they need the normal-text ratio of 4.5:1. A bold 16px label is still below the bold threshold, so do not rely on the 3:1 large-text allowance unless your label really is that big.
Do disabled buttons have to meet contrast rules?
No. WCAG exempts inactive user interface components from the contrast requirements. That said, a disabled button that is nearly invisible can confuse people, so many teams keep it faint but recognizable and explain nearby why the action is unavailable, for example by noting which required field is still empty.
What about the button's own outline?
Under success criterion 1.4.11, the visual information needed to identify a component must reach 3:1 against adjacent colors. If your button has a solid fill that contrasts with the page, the fill does the job. If it is an outline button, check the border color against the page background instead.
Get a beautiful, accessible interface designed by VYZEON.
See UI/UX design