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.

Runs in your browser v1.0.0

Setup

#4f46e5

Hex, rgb(), hsl() or a CSS color name.

Presets

Text and button roles are nudged until they meet this ratio.

What the shades and text are measured against.

6

How many steps the light-to-dark ramp contains.

Accessible palette

AA 4.5:1

UI roles

Preview

AA

Accessible by design

Body copy, buttons and muted text all meet the selected contrast target.

Primary action Muted link


                    

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.