Skip to content
EASE+ Creative

From colour palette to design tokens

Turn a handful of brand colours into an accessible 50–950 scale and ship it as CSS variables, JSON tokens and Tailwind config.

A brand rarely needs more than one accent and a neutral. What it does need is a predictable ramp of tints and shades for backgrounds, borders, hover states and text.

1. Start from one decision

Pick your primary colour first. If you have photography, pull candidates with the Image Color Extractor; otherwise start in the Color Palette Generator.

2. Build the scale in a perceptual space

HSL lightness lies: yellow at 50% looks far brighter than blue at 50%. Generating steps in OKLCH spaces lightness evenly, so 500 of every hue carries similar visual weight. That makes swapping accents safe.

3. Check contrast where it matters

  • Body text: 4.5:1 or better against its background (WCAG AA).
  • Large text and UI glyphs: at least 3:1.
  • Typically 600–700 works as text on white, and 200–300 as text on near-black.

4. Export once, use everywhere

Use CSS variables for runtime theming, JSON tokens for design-tool sync, and the Tailwind v4 @theme block (or v3 config) for utility classes. Keep the names semantic (primary, neutral) rather than literal (purple).