Color Palette Generator

Generate a color palette at random or from an image, lock the colors you want to keep, and copy the hex codes or export them.

Your palette

Press the space bar or Generate for a new palette. Lock a color to keep it.

Palette settings

Color scheme

Each new palette uses one of the six schemes, picked at random.

Mood
AnyPastelNeonDarkMutedEarthy
Colors
5

Color 1 of 5

  • HEX#17324D
  • RGBrgb(23, 50, 77)
  • HSLhsl(210, 54%, 20%)
  • OKLCHoklch(31% 0.059 250.3)

Export

:root {
  --midnight-blue: #17324D;
  --steel-blue: #2F6FA8;
  --sky-blue: #8EC3E6;
  --antique-white: #F4EBDD;
  --peru: #E3894B;
}
Color codes
HEXRGBHSLOKLCH
File
PNGSVGASEProcreate

A 1600 × 900 picture of the colors with their codes.

Contrast between your colors

Each row is a background, each column a text color. Body text needs 4.5:1 (AA); Large means 3:1, enough for text 24px and up.

BackgroundText #17324D, Midnight BlueText #2F6FA8, Steel BlueText #8EC3E6, Sky BlueText #F4EBDD, Antique WhiteText #E3894B, Peru
Background #17324D, Midnight Blue2.4FailsSteel Blue text on Midnight Blue: 2.47 to 1, fails6.9AASky Blue text on Midnight Blue: 6.93 to 1, AA11.1AAAAntique White text on Midnight Blue: 11.10 to 1, AAA4.9AAPeru text on Midnight Blue: 4.96 to 1, AA
Background #2F6FA8, Steel Blue2.4FailsMidnight Blue text on Steel Blue: 2.47 to 1, fails2.8FailsSky Blue text on Steel Blue: 2.80 to 1, fails4.4LargeAntique White text on Steel Blue: 4.48 to 1, AA large2.0FailsPeru text on Steel Blue: 2.00 to 1, fails
Background #8EC3E6, Sky Blue6.9AAMidnight Blue text on Sky Blue: 6.93 to 1, AA2.8FailsSteel Blue text on Sky Blue: 2.80 to 1, fails1.6FailsAntique White text on Sky Blue: 1.60 to 1, fails1.3FailsPeru text on Sky Blue: 1.39 to 1, fails
Background #F4EBDD, Antique White11.1AAAMidnight Blue text on Antique White: 11.10 to 1, AAA4.4LargeSteel Blue text on Antique White: 4.48 to 1, AA large1.6FailsSky Blue text on Antique White: 1.60 to 1, fails2.2FailsPeru text on Antique White: 2.23 to 1, fails
Background #E3894B, Peru4.9AAMidnight Blue text on Peru: 4.96 to 1, AA2.0FailsSteel Blue text on Peru: 2.00 to 1, fails1.3FailsSky Blue text on Peru: 1.39 to 1, fails2.2FailsAntique White text on Peru: 2.23 to 1, fails

Brand designers, web developers, illustrators and anyone planning a room get colors that sit well together, ready to use.

Free, no sign-up, and the palette you were working on is kept in this browser, with a link that opens it anywhere.

  • 2 to 10 colors, lock any of them
  • A palette from any picture
  • CSS, Tailwind, ASE and Procreate

How to create a color palette

Make a palette from scratch or from a photo in three steps.

  1. Generate a palette

    Press Generate or the space bar for a new set of colors. Pick a scheme and a mood, such as Pastel, to steer it.

  2. Lock colors you like

    Click the lock on a color to keep it. The next palette changes only the others and builds them to suit the locks.

  3. Copy the color codes

    Copy any color's hex code, or export the palette as CSS, Tailwind, a PNG image, or ASE and Procreate files.

Color palette from an image

Add a photo, a screenshot or a painting and its main colors appear as a palette at once. Pixels are grouped by how alike they look to the eye, so a sunset gives its oranges and its deep blues rather than a muddy brown halfway between them.

Each color sits on the picture as a small ring, on a spot where that color really is. Drag a ring onto a sweater, a door or a patch of sky and its swatch follows as you move. Ask for anything from 2 to 10 colors, most used first.

The picture is read on this device, so a private photo never leaves it. JPG, PNG, WebP, GIF and iPhone HEIC photos all open, and a screenshot can be pasted straight from the clipboard with Ctrl or Cmd and V.

Website and brand color palettes

A website or brand usually needs one main color, one or two that support it, and neutrals for text and backgrounds. The 60 30 10 rule is a handy start: the main color on about 60% of the page, a second on 30%, and an accent on the last 10%.

Under the palette, a contrast table shows every color as text on every other one, with its ratio and WCAG grade. Pairs marked AA are fine for body text, so you can see which colors can carry words before a single line of CSS exists.

When it looks right, copy it as CSS variables, a Tailwind CSS theme, SCSS or JSON, in HEX, RGB, HSL or OKLCH. Design apps get an ASE file for Photoshop and Illustrator, a .swatches file for Procreate, or a PNG for the brand guide.

Color blind friendly palettes

About 1 in 12 men and 1 in 200 women see some colors differently, most often red and green. View as redraws the palette the way it looks with protanopia, deuteranopia, tritanopia or no color vision at all, so you can check a chart or a button set.

When two colors turn almost the same in one of those views, a note names the pair. Making one of them clearly lighter or darker usually fixes it, because a difference in lightness still shows with every kind of color blindness.

What the color palette maker does

  • Random color palettes

    Press the space bar for a fresh palette as often as you like. Undo brings back the one before it.

  • Color scheme generator

    Base each palette on a color harmony: analogous, complementary, triadic, monochromatic and more.

  • Pastel and dark palettes

    Pick a mood, Pastel, Neon, Dark, Muted or Earthy, and every new palette you make keeps to it.

  • Tailwind and CSS export

    Copy the colors as CSS variables, a Tailwind CSS theme, SCSS, JSON or a plain list of hex codes.

  • Procreate and ASE files

    Download a .swatches file for Procreate, an ASE file for Adobe apps, or the palette as PNG or SVG.

  • Accessible color palette

    A contrast table grades every pair for text, and View as checks the colors for color blindness.

Where your palettes stay

In this browser. Pictures you add are read here too.

  • Processing

    Palettes are made and pictures are read by code in this tab, so no image or color goes to a server.

  • Storage

    Only your current palette and settings are saved, in this browser, so they are back on your return.

  • Account

    Make as many palettes as you like with no sign-up or email, and share any of them with a plain link.

Color palette questions

What is a color palette?

A set of colors chosen to be used together, in a design, a brand, a room or a painting. Most hold three to six colors.

What is a color scheme?

The rule behind a palette that says which colors go together, such as complementary, analogous or monochromatic.

What is the 60 30 10 color rule?

A guide to balance from interior design: a main color on 60% of a room or page, a second on 30% and an accent on 10%.

What colors go well together?

Colors opposite on the wheel give contrast, neighbors look calm, and nearly any color works beside a light and a dark neutral.

How many colors should a brand have?

Most brands use one main color, one or two supporting colors and a couple of neutrals, so three to five in all.

What are pastel colors?

Soft, pale colors with a lot of white in them, such as baby blue, mint and blush pink. The Pastel mood makes palettes of them.

What are earth tones?

Browns, tans, olive greens, rust and warm greys, the colors of soil, wood and stone. The Earthy mood builds palettes from them.

How do I get a color palette from an image?

Open the Image tab and add a picture. Its main colors appear at once; drag a ring on the picture to pick a different spot.

Still stuck, or found a problem? Email dobliquestudio@gmail.com and we will help.