Developer tool

Color Palette Generator

Enter a base hex color and create a small palette using common hue relationships.

Runs in your browser. No upload.

Values are processed locally in this browser.

Result

—

About this tool

Color Palette Generator made simple.

Generated palettes are visual starting points, not accessibility guarantees. Check each foreground and background combination with the contrast checker.

Guide

Using Color Palette Generator

Type one starting colour as a hex code and this page returns two or three matching colours, also as hex codes. You choose a style: complementary gives one partner colour, analogous gives two neighbours, and triadic gives two colours spaced evenly around the colour wheel. Designers, students and anyone picking colours for a slide or a website can use it as a first draft. It shows text codes only, with no swatches, and it does not test whether colours are easy to read together.

How to use it

  1. Type your starting colour in the Base colour box. Use three or six hex digits, such as #4F46E5 or #fff. The # sign is optional.
  2. Open the Palette style list and choose Complementary, Analogous or Triadic.
  3. Press Calculate. The result lists your own colour first, then the new ones, each as a hex code.
  4. Copy the codes into your design tool or style sheet. Press Clear to empty the fields.

Worked examples

Complementary partner for an indigo blue

You enter
Color
#4F46E5
Mode
complementary
You get
Result
Complementary palette #4F46E5 #DCE546 Check text/background contrast before use.

The blue sits near 243 degrees on the colour wheel. Adding 180 degrees gives about 63 degrees, a yellow-green. A separate conversion gave the same codes.

Run through the tool’s own code.

Analogous neighbours

You enter
Color
#4F46E5
Mode
analogous
You get
Result
Analogous palette #4F46E5 #9F46E5 #468CE5 Check text/background contrast before use.

The tool moves the hue 30 degrees one way and 30 degrees the other way, which gives a purple and a lighter blue. A separate conversion gave the same codes.

Run through the tool’s own code.

Triadic set from pure red

You enter
Color
#FF0000
Mode
triadic
You get
Result
Triadic palette #FF0000 #00FF00 #0000FF Check text/background contrast before use.

Pure red moved 120 and 240 degrees gives pure green and pure blue. The last line is a reminder the tool always adds.

Run through the tool’s own code.

Grey has no partner colour

You enter
Color
#808080
Mode
complementary
You get
Result
Complementary palette #808080 #808080 Check text/background contrast before use.

Grey has no colour in it, so turning the wheel changes nothing. Every result repeats the starting grey. The same happens with white or black.

Run through the tool’s own code.

When it helps

  • A student builds a first colour set for a school poster or slide deck.
  • A website owner looks for one accent colour to go with a brand colour.
  • A designer wants quick hex codes to paste into a mood board or style sheet.
  • A teacher shows how hue steps around the wheel make complementary and triadic sets.
  • A hobbyist picks matching colours for a logo draft or a social media banner.

Limits to keep in mind

  • Only 3-digit and 6-digit hex codes are accepted. Names such as red, and formats such as rgb(), are rejected with an error message.
  • The tool changes the hue only. Lightness and saturation stay the same as your starting colour, so every colour in the set has the same strength.
  • The result is text. There are no colour swatches and no download, so you cannot see the palette on the page.
  • The tool does not check contrast. Check any text and background pair yourself before you use it.

Tips

  • Try all three styles with the same base colour and keep the one that suits your project.
  • Pick a base with some saturation. Greys, black and white return the same colour again.
  • Use one colour of the set for large areas and another only as a small accent.
  • Test every text and background pair with a contrast checker before you publish.

Sources

Common questions

About Color Palette Generator.

What is a complementary colour?

It is the colour directly opposite yours on the colour wheel, 180 degrees away in hue. This tool keeps the lightness and saturation of your colour and only turns the hue, as described in the MDN guide to hsl().

What is the difference between analogous and triadic?

Analogous colours sit next to yours, 30 degrees either side, so they look calm and close. Triadic colours are spaced 120 degrees apart, so the three look bolder and more varied.

Why does the first colour in the result look like mine?

The first code is your own colour, written back in capital letters with six digits. A short code such as #fff becomes #FFFFFF. This lets you keep the whole set in one list.

Does the tool make sure the colours are easy to read together?

No. It only moves the hue. Readability depends on the lightness difference between text and background, so use a contrast checker. WCAG asks for at least 4.5 to 1 for normal text at level AA.

Can I type a colour name or an rgb value?

No. The box accepts only a hex code with three or six digits, with or without the # sign. Convert other formats to hex first, or the tool will show an error asking for a hex colour.

Why do I get the same colour back when I use grey?

Grey, black and white have no hue. Turning the hue changes nothing, so the partner colours come out identical. Choose a colour with some tint if you want a real palette.

How many colours will I get?

Complementary gives two colours, analogous gives three and triadic gives three. Your own colour counts as the first one in each list.

Are my colours saved or sent anywhere?

No. The hex maths runs in your browser and nothing you type is uploaded. The page also does not store your colour, so copy the codes before you leave.

Why might my result differ a little from another palette site?

Sites use different colour models and rounding. This tool turns your hex code into hue, saturation and lightness, rotates the hue, and rounds each channel back to a whole number, so a code can differ by a step.

How do I use Color palette generator?

Enter a base hex color and create a small palette using common hue relationships.

Is my data uploaded to a server?

No. This tool runs locally in your browser. Your input is not uploaded.