Color Palette Generator

Generate beautiful color palettes from any base color. Monochromatic, complementary, triadic, analogous and more. Export as CSS, Tailwind, or JSON.

Everything runs in your browser. Your data never leaves your device.

Base Color

Press Space anywhere on the page to randomize

#CEE0FD
#77A8F9
#0B64F4
#07409C
#031E49

Click any swatch to copy its HEX value. Hover to see RGB and HSL.

Export

CSS Variables
--color-primary: #CEE0FD;
--color-secondary: #77A8F9;
--color-tertiary: #0B64F4;
--color-quaternary: #07409C;
--color-quinary: #031E49;
Tailwind Config
colors: {
  'primary': '#CEE0FD',
  'secondary': '#77A8F9',
  'tertiary': '#0B64F4',
  'quaternary': '#07409C',
  'quinary': '#031E49'
}
JSON
[
  "#CEE0FD",
  "#77A8F9",
  "#0B64F4",
  "#07409C",
  "#031E49"
]

Common Use Cases

Generate a full 10-shade scale from a brand's primary HEX color to populate a design system or Tailwind config with consistent, accessible tones
Explore complementary and triadic palette options for a new UI project and export them as CSS variables to drop directly into a stylesheet
Pick an analogous palette for a marketing landing page that needs a natural, harmonious feel without strong color contrast
Use the split-complementary output to find accent and highlight colors that pair well with a hero section's background without clashing

About Color Palette Generator

Color theory is the foundation of every design system. The way colors relate to each other on the color wheel determines whether a palette feels harmonious, energetic, calm, or striking. Understanding these relationships — and knowing how to derive them mathematically from a single base color — is one of the most practical skills in UI and graphic design.

Monochromatic palettes use one hue across a range of lightness and saturation values. They feel cohesive and refined, and are the basis of nearly every "minimal" or "clean" design. Complementary palettes pair a color with its opposite on the wheel (180° away), creating high contrast and vibrant tension — ideal for call-to-action buttons against a neutral background. Triadic palettes use three colors equally spaced (120° apart), offering variety while maintaining balance. Analogous palettes use colors adjacent on the wheel (±30°), producing naturally pleasing, low-contrast combinations often found in nature. Split-complementary is a softer alternative to complementary — it takes the two colors adjacent to the complement, giving contrast without the harshness of a direct complement.

The "Shades" mode generates a 10-step tint-and-shade scale modeled after Tailwind CSS's color system (50 through 900). This is directly usable in a Tailwind config or design token setup: pick your brand color and instantly get the full scale from near-white to near-black.

All palette math runs entirely in your browser using HSL (Hue, Saturation, Lightness), the most intuitive color model for manipulation. Rotating the hue produces harmonic color relationships. Adjusting lightness produces tints and shades. Adjusting saturation produces muted or vivid variants. The tool exports palettes as CSS custom properties, Tailwind config objects, or JSON arrays — ready to paste directly into your codebase.

Frequently Asked Questions