Color palette generator

Builds a palette, shade scales and contrast checks from one color.

hsl(231 91% 58%)
hsl(206 68% 84%)
hsl(255 82% 34%)
hsl(183 77% 72%)
hsl(279 63% 24%)

13 of 30 text and background pairs pass AA for body text · press Space for a new palette

Shades of #3451F5

Your color sits at 500

Contrast

Text ↓ on →
3451F5Aa 4.0AA LargeAa 2.1FailAa 4.1AA LargeAa 2.3FailAa 5.8AAAa 3.3AA Large
BBDAF2Aa 4.0AA LargeAa 8.4AAAAa 1.0FailAa 9.0AAAAa 1.5FailAa 13.0AAA
34109EAa 2.1FailAa 8.4AAAAa 8.7AAAAa 1.1FailAa 12.3AAAAa 1.5Fail
82E9EFAa 4.1AA LargeAa 1.0FailAa 8.7AAAAa 9.3AAAAa 1.4FailAa 13.4AAA
4A1765Aa 2.3FailAa 9.0AAAAa 1.1FailAa 9.3AAAAa 13.1AAAAa 1.4Fail

Preview

Your palette, in use

Headings, body text, charts and buttons drawn from your colors.

Get startedLearn more
:root {
  --color-1: #3451f5;
  --color-2: #bbdaf2;
  --color-3: #34109e;
  --color-4: #82e9ef;
  --color-5: #4a1765;
  --brand-50: #f1f3fe;
  --brand-100: #cdd4fa;
  --brand-200: #a5b2fb;
  --brand-300: #7f92f9;
  --brand-400: #5a71f7;
  --brand-500: #3451f5;
  --brand-600: #0c2eee;
  --brand-700: #0a25c1;
  --brand-800: #071c94;
  --brand-900: #051467;
  --brand-950: #030b3a;
}
Powered byUptool
See it in another brand

About this tool

Color palette generator, explained

A color palette generator turns one color into a set of colors that work together, plus a full scale of tints and shades for an interface. Pick a harmony, lock the colors you like and generate the rest, check every text pair for contrast, then export the palette as code or a PNG.

How to use it

  1. 1Pick a harmony at the top (Analogous, Mono, Complementary, Split, Triadic or Square) and click Generate, or press Space, until you like what you see.
  2. 2Click a color to change it with the picker, and lock it to keep it when you generate again. Add colors with + or remove them, from two to eight.
  3. 3Click the shades icon on a color to see its scale from 50 to 950, and read the Contrast table to see which text and background pairs reach AA or AAA.
  4. 4Choose an export (CSS, Tailwind v4, Tailwind v3, SCSS or JSON) and HEX, RGB or HSL values, then Copy code, download the file or Download PNG. Copy link saves the palette in the address.

How it works

How the palette is built

Harmonies are placed on the color wheel around a base color. Analogous adds hues 24° and 48° on either side, Complementary the hue 180° away, Split the hues 150° and 210° away, Triadic 120° and 240°, and Square 90°, 180° and 270°. Mono keeps the hue and steps the lightness up and down by 16 points. Lightness and saturation also vary from color to color, so a palette has light and dark members.

Generate keeps every locked color, and the first locked color becomes the base for the others. With nothing locked, a new base is drawn with your browser's cryptographic random generator, with a saturation between 55% and 85% and a lightness between 42% and 58%.

The shade scale has eleven steps, 50 to 950, as in Tailwind CSS, and it is anchored on your color: the step whose target lightness is closest to your color's keeps your exact hex. The targets run from 97% lightness at 50 to 14% at 950. Steps lighter than yours are spread evenly up to 97%, darker ones down to 12%, and very light tints use 90% of your saturation so they stay soft. The starting color, #3451f5, sits at 500.

The contrast table puts each palette color as text on every other color, on white and on near-black (#111111), using the WCAG 2 formula. Ratios are judged before rounding: AAA from 7:1, AA from 4.5:1, AA Large from 3:1, otherwise Fail. The labels on each swatch use white or near-black, whichever contrasts more.

The exported code names the palette colors color-1, color-2 and so on, and the selected color's scale brand-50 to brand-950. The PNG is a 1600 × 1000 sheet of both.

When to use it

Ways people use it

  • Starting a design system

    Turn the one color a logo gives you into accents and shades for backgrounds, borders, buttons and hover states.

  • Tailwind and CSS themes

    Export an @theme block for Tailwind v4, a config for Tailwind v3 or plain CSS variables, with the 50 to 950 scale already named the way Tailwind expects.

  • Readable text pairs

    The contrast table shows at a glance which colors can carry text on which backgrounds, before anything reaches a mockup.

  • Keeping the brand color fixed

    Lock your brand color and generate until the other colors suit it. The locked color stays the base, so every new set is built around it.

FAQ

Questions people ask

How do I create a color palette from one color?

Keep the hue of your color and vary its lightness to get tints and shades for backgrounds, borders and text. Then pick accents from the color wheel, such as the complementary color. Here, lock your color and generate in the harmony you want.

What do the numbers 50 to 950 mean in a color palette?

They name the steps of a scale from lightest to darkest. 500 is near the middle, lower numbers are tints used for backgrounds, and higher numbers are shades used for text and pressed states. The convention was popularized by design systems such as Material Design and Tailwind CSS.

What is a complementary color?

The color directly opposite yours on the color wheel, 180° away in hue. Blue and orange are complementary. Side by side they create strong contrast, which is why a complementary color works for elements that need attention.

What contrast ratio do I need for text?

WCAG level AA asks for at least 4.5:1 for normal text and 3:1 for large text. Level AAA raises those to 7:1 and 4.5:1. Check the exact pair you use, since the same color can pass on white and fail on a light tint.

Should I use hex, RGB or HSL for colors?

All three describe the same colors. Hex is compact and the most common in design files. HSL is the easiest to build palettes with, because lightness is its own number you can raise or lower while the hue stays the same. The exports here come in any of the three.

For your site

Get this tool on your site.

Built in your brand, published on your site with a page written to rank, leads sent to your CRM and a report every month. We are opening to a few sites at a time.

Where it goes
/tools page of a design tool or studio
How it captures the lead
“Build my full design system”
Why it works
Designers start every project here. A design tool or agency is in the room from day one.

More free tools