Color & Typography
Accessible Palette Generator
Start from one brand color, pick a WCAG contrast target, and get a tonal palette plus UI roles whose text and buttons are nudged until they pass. Preview it, then copy or download the tokens. Everything runs in your browser.
Setup
#4f46e5
Hex, rgb(), hsl() or a CSS color name.
Text and button roles are nudged until they meet this ratio.
What the shades and text are measured against.
How many steps the light-to-dark ramp contains.
Accessible palette
AA 4.5:1UI roles
Preview
Accessible by design
Body copy, buttons and muted text all meet the selected contrast target.
How it works
Your brand color is converted to HSL and spread across a light-to-dark tonal ramp. Each shade is measured against the chosen background with the WCAG relative-luminance formula, so you can see exactly which steps pass your target. The UI roles go a step further: text, muted text and button colors are nudged in lightness until their contrast ratio meets the target, then shown on a live preview. Click any shade to copy its hex, switch the output format, and copy or download the tokens. Everything runs in your browser — your colors never leave the page.