Web Design & UI/UX8 min read

Disabled Button Design: Why 50% Opacity Fails, and What to Use Instead

Fading your brand button to 50% opacity is the default disabled state and the wrong one. Use a solid gray fill (#C6C6C6) with a #8D8D8D label, a dark gray on dark screens, a line that says what is missing, or a button that stays on and shows the error.

By Boone
XLinkedIn
Disabled Button Design: Why 50% Opacity Fails, and What to Use Instead

A disabled button should look off, not faded. Turn your brand button down to 50% opacity and it still looks like your brand button, just paler, so people tap it and nothing happens. Here are the four fixes, the exact values for light and dark screens, and the code to hand your developer.

Why 50% opacity is everyone's disabled state

Nobody designs a faded button. It arrives: opacity is one slider in every design tool and one line of CSS, so the fastest "not now" button is the whole thing turned down to half.

The trouble is that opacity keeps the hue. A violet button at 50% is still violet, in the same shape and place, with the same label. The eye reads it as the same button in a lighter mood, not as one that is switched off.

Opacity also borrows its color from whatever sits underneath. The same faded button changes on every surface it lands on:

Continue

#6440E0 at 50% on white

Continue

#6440E0 at 50% on #161616

Continue

#6440E0 at 50% on yellow #FFD60A

One button at half opacity on three grounds. None of them looks switched off.

On white it turns lilac, on near-black it turns a deep violet that still looks pressable, and on a yellow card it goes brown. A disabled state should look the same everywhere, which means it needs its own colors.

Fix 1: turn it gray

#6440E0 at 50%

A checkout card with a total of $24.00, an empty card form and a pale violet Pay $24.00 button

#C6C6C6 and #8D8D8D

The same checkout card with a solid gray Pay $24.00 button and a darker gray label
The faded violet still looks tappable. The solid gray reads as off at a glance, because it has no brand color left in it.

Same checkout, same empty card form, two disabled buttons. The left one is the brand violet #6440E0 at half strength. The right one is IBM Carbon's disabled button: a solid #C6C6C6 fill with a #8D8D8D label.

Gray works because the brand color is the signal that says "tap me". Take the color away and the button stops asking.

Material 3 does the same thing in its own way: a disabled filled button drops the brand color and becomes a neutral container at 10% with its label at 38%. Shopify Polaris also goes neutral, black at 17% with a #8A8A8A label. Three systems, one rule: disabled loses the hue.

The same fix applies to every control that can be off: secondary buttons, toolbar icons, filter chips, menu items. If the enabled version carries your brand color, the disabled one carries none.

Fix 2: gray on dark screens too

#6440E0 at 50% on #161616

A dark Confirm Order screen with a deep violet Pay $24.00 button

#3A3A3A and #6B6B6B

The same dark screen with a dark gray Pay $24.00 button and a dim gray label
On a dark ground, half a violet is still a violet. The dark gray sits back with the rest of the screen.

Dark mode makes the faded button worse, not better. Over #161616, violet at 50% renders #3D2B7B, a rich color that looks like a perfectly good button. Carbon's dark theme uses a gray at 30% and a white label at 25%, which render #3A3A3A and #6B6B6B on that background.

So the rule holds in both themes. Define the disabled pair once for each theme instead of letting opacity guess. Our paper on dark mode design covers the rest of the dark palette.

Fix 3: say what's missing

No reason

A Create your account form with an email filled in, an empty password field and a gray Sign Up button

Add a password to sign up.

The same form with the line Add a password to sign up under the gray Sign Up button
The gray button tells people they cannot go on. The line under it tells them why.

A gray button answers "can I continue?" and leaves the harder question open: what am I missing? On a long form people scroll up and down hunting for the field that blocks them. Vitaly Friedman made the same point in Smashing Magazine in 2021: disabled buttons don't explain what's wrong.

One short line under the button fixes it. Write it as the next step, not a rule: "Add a password to sign up" beats "Form incomplete". Update it as the form fills, so it always names the one thing left. It works on a checkout ("Choose a delivery time to pay"), a Save button in settings, or a Next button in a multi-step flow.

Fix 4: or leave it on

Tap does nothing

A Pay with card form with a part-typed card number and a gray Pay $24.00 button

Tap shows the error

The same form with the Pay button on in violet and the card field outlined in red with the message Your card number is incomplete
A button that stays on can answer the tap. A disabled one can only ignore it.

The other answer is to skip the disabled state. Keep the button enabled, and when someone taps it with the form unfinished, move them to the first problem and say what is wrong. Stripe Checkout works this way: with a part-typed card number, Pay stays on in Stripe's blue and the field says "Your card number is incomplete."

This is the better choice on long forms and on anything where people cannot see every field at once. A disabled button also has a cost for keyboard and screen reader users: a native disabled button is skipped by the Tab key, so they may never learn it exists. If the button must look off but stay findable, use aria-disabled="true" instead and handle the tap yourself.

Not everyone goes gray, either. Stripe's own sign-up button stays a pale tint of its brand while it is inactive. The rule here follows Carbon, Material and Polaris, and it is a strong default, not a law.

The disabled spec

Continue

Disabled on light

Continue

Disabled on dark

The two disabled pairs, as they render.
Disabled button colors, light and dark. Tap a color to copy its code.
PartLightDarkRule
Fill#C6C6C6, solid#3A3A3AGray, never a faded brand color
Label#8D8D8D#6B6B6BA quiet step away from the fill
Opacitynever the whole buttonnever the whole buttonOpacity keeps the hue
Hintone line under the buttonsameSay what is missing
Tapshow the errorsameOr leave the button on

How the big systems build it:

SystemDisabled fillDisabled label
IBM Carbon (light)#C6C6C6, solid#8D8D8D
IBM Carbon (dark)gray at 30%, renders #3A3A3Awhite at 25%, renders #6B6B6B
Material 3neutral at 10%neutral at 38%
Shopify Polarisblack at 17%, about #D4D4D4 on white#8A8A8A

Hand this to your developer

The values as CSS custom properties, with the dark pair switching on the system theme:

css
:root { --button-disabled-bg: #C6C6C6; --button-disabled-fg: #8D8D8D; } @media (prefers-color-scheme: dark) { :root { --button-disabled-bg: #3A3A3A; --button-disabled-fg: #6B6B6B; } } .button:disabled, .button[aria-disabled="true"] { background: var(--button-disabled-bg); color: var(--button-disabled-fg); opacity: 1; /* never fade the whole button */ cursor: not-allowed; }

On Carbon these are the button-disabled and text-on-color-disabled tokens. Use aria-disabled="true" when the button should stay in the tab order and answer a tap with the error, as in fix 4.

The numbers, for the person defending the choice

WCAG 2 does not set a contrast minimum for text in an inactive control, so a disabled label is allowed to be quiet. That is why this paper says "looks off", never "easier to read".

PairContrast
White label on #6440E0, enabled6.27 to 1
#D8D0F8 label on #B2A0F0, faded to 50%1.56 to 1
#8D8D8D label on #C6C6C6, Carbon light1.94 to 1
#6B6B6B label on #3A3A3A, Carbon dark2.13 to 1

The faded button has the weakest label of the four and still looks the most tappable. The problem was never contrast. It was color.

FAQ

How should a disabled button look?

It should look switched off: a solid gray fill with a dimmer gray label, such as IBM Carbon's #C6C6C6 with #8D8D8D. A faded version of the brand color still looks tappable.

Should a disabled button use opacity?

Not on the whole button. Opacity keeps the brand hue and borrows color from the background, so the button looks different on every surface. Use fixed gray colors for each theme instead.

What color is a disabled button in dark mode?

A dark gray fill with a dim gray label. Carbon's dark theme renders #3A3A3A with a #6B6B6B label on a #161616 background.

Do disabled buttons need to meet WCAG contrast?

No. WCAG 1.4.3 exempts text in inactive controls from the contrast minimum. The button still has to read as off, and people still need to know what is missing.

Should I disable the submit button until a form is valid?

On a short form a disabled button with a one-line hint works. On a long form, keep the button on and show the errors when it is tapped, the way Stripe Checkout does.

Sources

More from Brainy Papers

Keep reading