Free tool · no sign-up

Color Palette Generator

Start from one colour, such as your logo's, and get a full palette: colour harmonies, a 50–900 scale of tints and shades, and WCAG contrast checks for text. Tap any colour to copy it, or copy the whole palette as CSS variables.

By Jamiul Alam Rejon · Updated

Triadic palette · tap to copy

Tints & shades (50–900)

50
100
200
300
400
500
600
700
800
900

Text contrast (WCAG)

Sample text on white5.41:1 · AA
Sample text on black3.88:1 · AA large only

Hue 151°, saturation 83%, lightness 26%.

CSS variables

:root {
  --color-1: #0B7A45;
  --color-2: #440B79;
  --color-3: #79440B;
  --brand-50: #E8FDF3;
  --brand-100: #D0FBE6;
  --brand-200: #A2F6CD;
  --brand-300: #73F2B5;
  --brand-400: #44EE9C;
  --brand-500: #16E983;
  --brand-600: #11BB69;
  --brand-700: #0D8C4F;
  --brand-800: #095D34;
  --brand-900: #05381F;
}
Quick answer

A colour palette generator builds matching colours from a base colour using colour-wheel rules: complementary (opposite, 180°), analogous (neighbours, ±30°), triadic (three colours 120° apart) and tetradic (four colours 90° apart). It also makes lighter tints and darker shades for backgrounds, borders and text.

How colour harmonies work

Colour harmonies come from the colour wheel. Each one takes your base colour's hue and adds colours at fixed angles around the wheel, keeping the same saturation and lightness so they sit well together.

A colour wheel. Triadic colours sit 120° apart, complementary colours 180° apart, analogous colours next to each other.
HarmonyAnglesFeel
Complementary0°, 180°High contrast, good for calls to action
Analogous−30°, 0°, +30°Calm and natural
Triadic0°, 120°, 240°Lively and balanced
Split-complementary0°, 150°, 210°Contrast with less tension
Tetradic0°, 90°, 180°, 270°Rich; needs one dominant colour

Building a website palette

  1. One brand colour for buttons, links and key highlights.
  2. Its tints and shades for backgrounds (50–100), borders (200–300), hover states (600–700) and dark text (800–900).
  3. One accent from the harmony for badges, sale tags or charts.
  4. Neutral greys for most text and surfaces.
  5. Check contrast. Body text needs at least 4.5:1 against its background. Light brand colours often fail on white; use a darker shade for text.

The 60-30-10 rule

A simple way to use a palette without it looking busy: about 60% of the page in a neutral or very light colour, 30% in a secondary colour, and 10% in your strongest accent for buttons and key links. Keeping the accent rare is what makes it stand out.

Choosing a brand colour

  • Start from what you have. If you already have a logo, use its main colour as the base.
  • Check it on white and black. A brand colour that can't carry white text makes buttons hard to read.
  • Look at your competitors. Use the Website Technology Checker or just their sites to avoid looking the same.
  • Plan for dark mode. The lighter end of your scale (200–400) usually works for accents on dark backgrounds.

Why contrast matters

Low-contrast text is hard to read in sunlight, on cheap screens and for anyone with low vision, and people leave pages they can't read. The WCAG contrast ratio runs from 1:1 (same colour) to 21:1 (black on white). The generator flags each colour as AAA, AA, AA for large text only, or failing. To convert a colour between HEX, RGB and HSL, use the HEX to RGB Converter.

Frequently asked questions

How do I create a colour palette from one colour?

Pick your brand colour, choose a harmony and the generator rotates its hue around the colour wheel: 180° for complementary, ±30° for analogous, 120° steps for triadic. It also builds tints and shades of the base colour from very light (50) to very dark (900).

Which colour harmony should I use?

Analogous palettes feel calm and related. Complementary palettes give strong contrast for buttons and highlights. Triadic and tetradic palettes are lively and work best with one dominant colour and the others used sparingly.

What contrast ratio do I need for text?

WCAG 2 level AA needs 4.5:1 for normal text and 3:1 for large text (about 24px, or 19px bold). Level AAA needs 7:1. The generator shows the ratio against white and black for every colour.

What are tints and shades?

A tint is the colour mixed towards white; a shade is the colour mixed towards black. A 50–900 scale gives you backgrounds, borders, hover states and dark text that all match.

Can I use the palette in Tailwind or CSS?

Yes. Copy the CSS variables, or use the HEX values from the 50–900 scale as a custom colour in your Tailwind config.