utilities.dev

Palette Generator

Create consistent color scales from any base color for design systems and stylesheets.

Palette generation runs entirely in your browser; no colors or input are sent to a server.

Base Color
Enter a HEX color to generate shades and tints

Base color (500) used for the palette scale

Output Options
Configure CSS variable prefix and format
Generated Palette
Scale from 50 (lightest) to 950 (darkest). 500 is your base color.
50#e3edfe
100#d0e1fd
200#abcafb
300#86b2f9
400#619bf8
500#3b82f6
600#0b62ef
700#094cb9
800#063684
900#04204e
950#021533
CSS Variables
Copy into your stylesheet :root block
:root {
  --color-50: #e3edfe;
  --color-100: #d0e1fd;
  --color-200: #abcafb;
  --color-300: #86b2f9;
  --color-400: #619bf8;
  --color-500: #3b82f6;
  --color-600: #0b62ef;
  --color-700: #094cb9;
  --color-800: #063684;
  --color-900: #04204e;
  --color-950: #021533;

/* RGB for use with rgb(var(--color-500-rgb) / 0.5) */
  --color-50-rgb: 227 237 254;
  --color-100-rgb: 208 225 253;
  --color-200-rgb: 171 202 251;
  --color-300-rgb: 134 178 249;
  --color-400-rgb: 97 155 248;
  --color-500-rgb: 59 130 246;
  --color-600-rgb: 11 98 239;
  --color-700-rgb: 9 76 185;
  --color-800-rgb: 6 54 132;
  --color-900-rgb: 4 32 78;
  --color-950-rgb: 2 21 51;
}
Hex Map
Name-to-hex mapping for config or docs
50: #e3edfe
100: #d0e1fd
200: #abcafb
300: #86b2f9
400: #619bf8
500: #3b82f6
600: #0b62ef
700: #094cb9
800: #063684
900: #04204e
950: #021533

How to use this tool

  1. Enter a base color in HEX format.
  2. Choose output format (CSS variables, hex map) and copy options.
  3. Copy the generated palette for use in CSS, Tailwind config, or design tokens.

About Palette Generator

This utility helps you build color scales from a single base color, useful when defining design tokens or migrating brand colors into a structured palette. Output is deterministic: the same base color always produces the same shades and tints.

Common use cases

  • Generating Tailwind-style color scales for a custom theme
  • Creating CSS custom property palettes for component libraries
  • Exporting hex values for design handoff or style guides

FAQ

What does this palette generator do?
It takes a base HEX color and produces a full scale of lighter tints and darker shades, with 500 as the base. Output includes HEX values and CSS variable declarations suitable for design systems.
Does this tool send my colors to a server?
No, all processing happens in your browser. Your base color and generated palette never leave your device.
Can I use shorthand HEX values like #fff?
No, only full six-digit HEX format (#RRGGBB) is supported. Use a color converter first if you have shorthand or other formats.
Why does my palette look different from Tailwind's default colors?
This tool uses a simple HSL-based interpolation. Tailwind and other frameworks may use different algorithms or hand-tuned values, so results can vary slightly.

Related tools