Tools › Build › Color Palette Generator
🎨

Color Palette Generator

Generate harmonious colour palettes from any base colour — with shades, WCAG contrast checks and one-click export for CSS, Tailwind and design tools.

🎨 6 harmony types
♿ Contrast check
📋 HEX · RGB · HSL
📦 CSS · Tailwind · JSON
🎨

Base colour

Pick a colour, or type a HEX, RGB, HSL value or a colour name.

Click any colour to copy it in this format. Contrast is measured against the text colour shown (WCAG).
🎚

Shades & tints

An 11-step scale (50–950) built from your base colour, which sits at 500.

Advertisement
</>

Export

Copy ready-to-use code, or download the palette as an image.


How to use

  1. Pick a base colour with the colour picker, or type a value — HEX (#3b82f6), RGB, HSL or a name like tomato. Press Random colour for inspiration.
  2. Choose a harmony: analogous, complementary, triadic, split complementary, tetradic or monochromatic. The five-colour palette updates instantly.
  3. Click any swatch to copy it. Switch between HEX, RGB and HSL to change the copied format. The text on each swatch shows its WCAG contrast ratio.
  4. Use the shade scale (50–950) for buttons, backgrounds and hover states built from the same hue.
  5. In Export, copy the palette or the scale as CSS variables, SCSS, Tailwind (v3 or v4) or JSON — or download a PNG.

Colour harmonies explained

Analogous colours sit next to each other on the colour wheel — calm and cohesive. Complementary colours are opposites — strong contrast that makes calls-to-action stand out. Triadic uses three evenly spaced hues — lively but balanced. Split complementary pairs a colour with the two neighbours of its opposite — high contrast with less tension. Tetradic combines two complementary pairs for rich palettes. Monochromatic keeps one hue and varies lightness — safe and elegant.

As a rule of thumb, use one colour as the dominant (about 60%), a second as support (30%) and an accent for highlights (10%).

Choosing accessible colours

Text needs enough contrast against its background: a WCAG ratio of at least 4.5:1 for normal text (level AA), 3:1 for large text and 7:1 for the stricter AAA level. Each swatch here shows the ratio between the colour and the black or white text that reads best on it, so you can see at a glance whether it is safe to put a label on it. Light tints usually work with dark text and deep shades with white text.

Frequently asked questions

How do I generate a colour palette from one colour?

Choose or type your base colour, then pick a harmony such as analogous or triadic. The tool calculates four more colours around the colour wheel and keeps your base colour in the set, so the palette is always built around the colour you chose.

What is the difference between a shade and a tint?

A tint is a colour mixed with white (lighter), and a shade is a colour mixed with black (darker). The 11-step scale shows five tints, your base colour at 500, and five shades.

How do I use the palette in Tailwind CSS?

Pick the Tailwind tab in Export. Tailwind v3 gives a tailwind.config.js snippet to paste into theme.extend.colors; Tailwind v4 gives CSS variables for an @theme block. Choose “Shade scale” to get a brand-50 to brand-950 set, which works with classes like bg-brand-500.

Can I type an RGB, HSL or named colour?

Yes. Type rgb(59, 130, 246), hsl(217, 91%, 60%), a short hex like #36f or a CSS colour name such as tomato or rebeccapurple. The value is converted to HEX for the palette.

What does the contrast ratio on each swatch mean?

It is the WCAG contrast ratio between the swatch colour and the readable text colour (white or black) shown on it. AA means it passes for normal text, AAA is the highest level, and “Low” means text on that colour may be hard to read.

Can I share my palette?

Yes. The page address updates with your base colour and harmony (for example #hex=3b82f6&mode=triadic), so you can copy the link from your browser. You can also download the palette as a PNG image.

Is this colour palette generator free?

Yes, it is free, needs no sign-up and runs entirely in your browser. Nothing you enter is sent anywhere.