Color Palette Generator

Start from your brand color and get a palette that fits with it. Choose a color harmony and how many colors you want, then copy the CSS variables or Tailwind config.

Runs in your browser. Nothing you type is uploaded.

Your numbers

Result

Complementary palette5 colors

Hues turn in OKLCH, which keeps lightness steady so the colors look balanced together.

Palette colors with contrast against white and black text or backgrounds
NameHEXRGBHSLOn whiteOn black
Base#e08a45rgb(224, 138, 69)hsl(27, 71%, 57%)2.66:17.89:1
Hue +180°#3aadeargb(58, 173, 234)hsl(201, 81%, 57%)2.51:18.34:1
Base hue, lighter#ffbe90rgb(255, 190, 144)hsl(25, 100%, 78%)1.61:113.02:1
Hue +180°, lighter#98d7ffrgb(152, 215, 255)hsl(203, 100%, 80%)1.55:113.49:1
Base hue, darker#b15f0crgb(177, 95, 12)hsl(30, 87%, 37%)4.65:14.51:1
CSS variables
:root {
  --palette-1: #e08a45; /* base */
  --palette-2: #3aadea;
  --palette-3: #ffbe90;
  --palette-4: #98d7ff;
  --palette-5: #b15f0c;
}
Tailwind config
// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        palette: {
          1: '#e08a45',
          2: '#3aadea',
          3: '#ffbe90',
          4: '#98d7ff',
          5: '#b15f0c',
        },
      },
    },
  },
};

How it works

Harmonies
Complementary adds the opposite hue (180°). Triadic spaces three hues 120° apart, split complementary uses 150° and 210°, tetradic uses 90° steps, and analogous adds neighbors 30° apart.
Why OKLCH
The hue is turned in OKLCH, a color space built to match how people see lightness. A yellow and a blue at the same OKLCH lightness look equally bright, which is not true in HSL.
Extra colors
When you ask for more colors than the harmony has, the tool repeats its hues lighter and darker. Colors outside the sRGB range are pulled back by lowering chroma only.

Questions

How many colors should a brand palette have?

Most small products do well with one main color, one accent and a set of grays. Use the extra colors for charts, tags or states, not for every button.

What do the On white and On black columns mean?

They are the WCAG contrast ratios of each color against pure white and pure black. A value of 4.5:1 or more means the color works for normal text on that background, or as a background behind that text.

Can I use these colors with Tailwind?

Yes. Paste the Tailwind block into the extend.colors part of your config, then use classes like bg-palette-1 or text-palette-2. For full 50 to 950 scales of one color, use the Tailwind shade generator.

Get CapyLaunch Weekly

New indie launches and the week in AI tools and models, every Monday. Free, and you can unsubscribe anytime.

We send a confirm link first. Privacy

Your launch, this week. Free.

A reviewed listing, a permanent page with a link to your site, and feedback from makers who actually care.

Start my launch →or browse toolsFree to submit. Every listing is reviewed before it goes live.