Color Palette Generator

Generate colour palettes with harmony rules, lock the colours you like, build a 50 to 950 tonal scale from any colour, check WCAG contrast, and export the result as CSS variables, Tailwind config, SCSS, design tokens, or SVG.

  • Free, no signup
  • Runs in your browser
  • Reviewed October 14, 2026
Harmony Modes:
Color 1
#0A0908
Click to copy
Color 2
#22333B
Click to copy
Color 3
#5E503F
Click to copy
Color 4
#C6AC8F
Click to copy
Color 5
#EAE0D5
Click to copy

Curated Design System Aesthetics

Luxury Obsidian

Deep noir architectural obsidian with warm champagne and beige accents.

Modern SaaS Indigo

Enterprise tech palette with vibrant indigo, electric sky, and slate grays.

Cyberpunk Neon

High-contrast futuristic electric palette featuring acid lime and magenta.

Nordic Minimalist

Crisp Scandinavian cool grays paired with energetic crimson accents.

Emerald Forest

Refreshing botanical organic greens for eco, wellness, and sustainability apps.

Warm Terracotta

Earthy artisan tones inspired by Mediterranean clay, desert sun, and amber.

Sunset Gradient

Rich twilight gradient flowing from deep violet into fiery amber.

Pastel Dream

Soft, modern confectionery pastels for playful and creative interfaces.

How to use the Color Palette Generator

  1. Press the spacebar or Randomize to generate a palette. Lock any colour you want to keep before generating again.
  2. Pick a harmony mode, such as complementary or analogous, to generate colours that relate to each other.
  3. Open a colour's shades to see its full scale from 50 (lightest) to 950 (darkest) and contrast ratios against white and black.
  4. Preview the palette on sample buttons, cards, and inputs, then export the format you need.

How it works

Harmony modes rotate around the colour wheel in HSL: complementary uses the opposite hue (180°), triadic uses three hues 120° apart, analogous uses neighbouring hues, and monochromatic varies lightness and saturation of one hue.

Contrast is calculated with the WCAG 2.1 formula from relative luminance. WCAG AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1 and 4.5:1.

Contrast ratio = (L1 + 0.05) ÷ (L2 + 0.05)   where L1 is the lighter colour
AA normal text ≥ 4.5   AA large text ≥ 3   AAA normal text ≥ 7

Worked example: checking a brand violet for button text

White text on #725AC1 has a contrast ratio of 5.32:1, which passes AA for normal text. On the lighter #8D86C9 it drops to 3.29:1, which only passes for large text, so that shade suits backgrounds and borders better than text buttons.

Mid-grey #777777 on white is 4.48:1, just below the 4.5:1 needed for body text, a common accidental failure.

Text on backgroundContrast
White on #725AC15.32:1 (AA)
White on #8D86C93.29:1 (large text only)
#242038 on #F7ECE113.48:1 (AAA)
#777777 on white4.48:1 (fails AA body text)

Limitations

  • Harmony rules are starting points. A palette can follow a rule and still look wrong for your brand; adjust by eye.
  • Colours look different on different screens, and in print. Check important colours on several devices.
  • WCAG 2.1 contrast is a minimum. Thin fonts and small sizes can still be hard to read at passing ratios.

Frequently asked questions

What contrast ratio do I need for accessible text?

4.5:1 for normal body text and 3:1 for large text (about 24 px regular or 19 px bold) to meet WCAG 2.1 AA.

What is a 50 to 950 colour scale?

A set of tints and shades of one colour, numbered from lightest (50) to darkest (950), as used by Tailwind CSS and many design systems.

How do I use the Tailwind export?

Paste the colours into the theme section of your Tailwind configuration, then use classes such as bg-primary-500 in your markup.

Can I lock a colour and regenerate the rest?

Yes. Locked colours stay fixed while the others change when you generate a new palette.

Related guides

Suggestions welcome

Need a tool that is not here yet?

Tell us what you are trying to do. Requests and bug reports shape what we build next.

Suggest a tool