How to Use Pastel Colors in Modern Design Without Looking Washed Out
Learn how to use pastel colors in web design without a washed-out look: the HSL values behind pastels, contrast-safe text pairings, and ready-made palettes.
Read GuideDesigner
Generate hover, active, focus, and disabled button colors with accessible text.
Designer
A single brand color is only the starting point for a button, and this button color generator fills in the rest of the states for you. From one base color it creates the default, a darker hover, an even darker active state, a semi-transparent focus ring and a disabled style. It also picks white or near-black label text based on contrast and shows the contrast ratio, so designers and developers can ship consistent, accessible buttons without guessing at hover shades.
Attach the focus ring to the :focus-visible selector rather than :focus, so keyboard users always see it while mouse clicks do not leave a ring behind. If the generator switches between white and near-black text as you nudge the base color, your color is sitting near the middle of the lightness range; move it clearly darker or lighter so the label stays legible and the brand look stays stable. Keep the hover change small but noticeable, because large jumps can feel like a different button.
FAQ
A common approach is to make the hover state slightly darker than the default on light themes, which signals interactivity without changing the brand color. The active or pressed state is usually a step darker still. On dark themes, lightening the button on hover often reads better than darkening it.
The button label needs at least 4.5:1 contrast against the button background, or 3:1 if the label is large text. WCAG also asks for 3:1 contrast for visual cues needed to identify a control and for focus indicators. Check every state, including hover and focus, not only the default.
No, WCAG exempts inactive interface components from its contrast requirements, so disabled buttons may look faded. Still, users should be able to tell that the button exists and why it is unavailable. Pair a muted disabled style with helper text that explains what needs to happen before the button becomes active.
A focus ring is the visible outline that shows which element currently has keyboard focus. People who navigate with a keyboard or switch device rely on it to know where they are on the page. Never remove the outline without replacing it with a clearly visible ring, such as the semi-transparent ring this tool generates.
Learn more
Learn how to use pastel colors in web design without a washed-out look: the HSL values behind pastels, contrast-safe text pairings, and ready-made palettes.
Read GuideLearn the 60-30-10 color rule for web design: how to split color across backgrounds, secondary areas and accents, with HEX examples, CSS and dark mode tips.
Read Guide