PeLi
50
100
200
300
400
500
600
700
800
900
950

Lightness Distribution 0-100

100 (White)
0 (Black)
-
Lightness
Hue
+

Hue Shift

-
Lightness
Saturation
+

Saturation Shift

Palette Generator and API for Tailwind CSS

Read the launch blog post for full details on how this works.

Palette Creator

Set the initial Value as a valid hexadecimal colour. By default this is stop 500, but it can be changed to any stop from 50-950.

For colours that have 100% Saturation, make the Palette more interesting by shifting the Hue up or down.

Palettes starting from a Base colour with little Saturation get more interesting by increasing Saturation at the extremes.

Shift the Minimum/Maximum Lightness/Luminance to spread out the rest of the colours to the extremes of white and black. Switch between Lightness and Luminance to produce a different spread of colours at the extremes.

These principles are inspired by the excellent Refactoring UI book by Adam Wathan & Steve Schoger. The same book recommends against automated tools, just like this one!

This tool exists to fast-track the creation of new palettes.

Palette API

Any set of Palettes can be fetched via an API. You may find this useful for design tools that need to generate a 50-950 Palette from just a single Hex value.

Currently, the API will only return a Palette using the base hex value, with no options to have HSL tweaks.

Credits

Made by Simeon Griggs

Tailwind CSS Version:
Output color mode:
@theme {
  --color-brand-50: oklch(94.87% 0.025 285.95);
  --color-brand-100: oklch(89.19% 0.055 285.26);
  --color-brand-200: oklch(78.18% 0.113 284.05);
  --color-brand-300: oklch(67.6% 0.173 280.72);
  --color-brand-400: oklch(57.21% 0.234 276.35);
  --color-brand-500: oklch(47.24% 0.294 267.83);
  --color-brand-600: oklch(41.15% 0.279 265.16);
  --color-brand-700: oklch(34.56% 0.235 265.13);
  --color-brand-800: oklch(28.04% 0.19 265.21);
  --color-brand-900: oklch(21.41% 0.144 265.35);
  --color-brand-950: oklch(17.74% 0.122 265.15);
}

Paste this into the css file with your Tailwind config