WCAG exempts inactive interface components from the contrast rules, which is why a greyed-out disabled button can be faint. But the exemption only covers components that are genuinely inactive. A button that looks disabled, still responds to a click, or becomes active without warning is not exempt and must meet the contrast bar.
Why this needs its own check
WebAIM’s contrast guide states that text or images of text that are part of an inactive user interface component have no contrast requirement under WCAG 1.4.3, and that non-text contrast under 1.4.11 also excepts inactive components. The exemption applies to components that are truly inactive, not to ones that only look inactive.
What you need before you start
- The page with a disabled button
- A keyboard and a mouse to test the button
- A contrast checker for the ratios
Step 1 – Try to activate the button
Click the disabled button and try to reach it by keyboard. If it responds, focuses, or submits anything, it is not inactive and the exemption does not apply.
Step 2 – Check it is truly inactive in code
Inspect the button and confirm it carries the disabled attribute or an equivalent state that assistive technology reports as disabled. A button styled grey with no disabled state fails.
Step 3 – Confirm the exemption applies
If the button is genuinely inactive, record that the low contrast is exempt and move on. If it is not inactive, measure its text against 4.5 to 1 and its border against 3 to 1.
Worked example
Practice check: a fictional Bluebell Nursery checkout page
The example below is fictional. Bluebell Nursery is an invented business used only as a practice case. No real customer, page, or product is shown. Treat it as a practice case, not as evidence about any real business.
| Part | What it should be | As shown | Result |
|---|---|---|---|
| Place order button disabled | Truly inactive with disabled state | Disabled attribute set, no response | Pass |
| Apply voucher button greyed | Truly inactive with disabled state | Grey style only, still clickable | Fail – still clickable |
| Save address button disabled | Truly inactive with disabled state | Disabled attribute set, no response | Pass |
| Continue button greyed | Truly inactive with disabled state | Grey style only, still focusable | Fail – still focusable |
Only 2 of the 4 checks pass: the place order button and the save address button. The two failures are the voucher and continue buttons, which look disabled but still work.
What to do when something is wrong
Give the voucher and continue buttons a real disabled state and remove them from the tab order while disabled. Do not rely on grey styling alone to signal that a button cannot be used.
Expected result. We checked the WebAIM contrast guide listed in Sources. We did not test a live Bluebell Nursery checkout. UNTESTED: no button was clicked on a real page; the practice table shows the expected result pattern for a checkout with two fake-disabled buttons.
Limits
- This check covers the inactive exemption only. It does not cover whether a disabled button should be hidden instead, or whether the form explains why the button is disabled.
Sources
- WebAIM – Contrast and Color Accessibility (checked 2026-11-29)
