Skip to tool

Free, no sign-up

Color Palette Generator

Build a color palette from one color. Lock what you like, press space for more, and export for free.

Free, no sign-up.

  • Lock and generateLock the colors you like and press space for fresh ones. Undo brings back any step.
  • Contrast on every colorEach swatch shows its WCAG rating with white and black text.
  • Export your wayCopy or download as CSS, Tailwind, SCSS, JSON, PNG or SVG.

1Settings

Harmony

Colors

5

Pick from 3 to 10 colors.

Press space to generate new colors. Locked colors stay.

Keyboard shortcuts
  • Space generates new colors
  • L locks or unlocks the selected color
  • C copies the selected color
  • Ctrl+Z undoes
  • Ctrl+Shift+Z redoes

2Palette

  • On white
    4.46 to 1
    AA large
    On black
    4.70 to 1
    AA
    Base color #6366F1
  • On white
    1.22 to 1
    Fails
    On black
    17.15 to 1
    AAA
  • On white
    2.70 to 1
    Fails
    On black
    7.77 to 1
    AAA
  • On white
    1.15 to 1
    Fails
    On black
    18.11 to 1
    AAA
  • On white
    9.66 to 1
    AAA
    On black
    2.17 to 1
    Fails

Selected color #6366F1

HEX
#6366F1
RGB
rgb(99, 102, 241)
HSL
hsl(239, 84%, 67%)
OKLCH
oklch(58.5% 0.204 277.1)

Tints and shades

3Export

:root {
  --color-1: #6366f1;
  --color-2: #f1ee63;
  --color-3: #9294f5;
  --color-4: #f5f392;
  --color-5: #1418da;
}
palette.css

Share

Anyone with the link sees this palette.

/color-palette-generator

How it works

Build palettes of 3 to 10 colors from any base color with complementary, analogous, triadic, split-complementary or monochromatic harmonies.

  1. 1

    Pick a base color

    Pick a base color with the picker or type a HEX, RGB or HSL value.

  2. 2

    Choose a harmony

    Choose a harmony type and how many colors you want.

  3. 3

    Lock and generate

    Lock the colors you like and press Generate or space for new ones.

  4. 4

    Copy or export

    Copy any color, or export the palette as CSS, Tailwind, SCSS, JSON, PNG or SVG.

Frequently Asked Questions

Answers about harmonies, locks, contrast and export.

How do I generate a color palette?

Pick a base color, choose a harmony type and the number of colors, and the palette appears at once. Press space to try new colors and lock the ones you want to keep.

What harmony types are available?

Complementary (opposite on the color wheel), Analogous (adjacent colors ±30°), Triadic (120° apart), Split-complementary (the base plus two colors flanking its complement), Monochromatic (shades of the same hue). Press space or Generate to get fresh colors in the chosen harmony.

Can I copy individual colors?

Yes. Each swatch shows its HEX, RGB, HSL and OKLCH values with copy buttons. Click the swatch itself to copy the HEX code.

Can I export the full palette?

Yes. Export it as CSS variables, a Tailwind config, SCSS, JSON, or a PNG or SVG swatch sheet, then copy or download it.

Are the generated palettes suitable for accessible design?

Each swatch shows its contrast with white and black text and whether it meets WCAG AA or AAA. To test any two colors together, use Contrast Checker.