Generate ToolWCAG 2.2 Compliant

Color Palette Generator — Create & Export Color Combinations

Generate harmonious color combinations with slot locking and instant export to CSS, Tailwind, and JSON. Free palette generator for web design and brand identity.

Palette Workspace (5 Colors)

Click Lock to keep a color fixed, Edit to adjust HEX, or Drag swatches / use arrows to reorder positions.

#3B82F6
#60A5FA
#1D4ED8
#93C5FD
#1E40AF

Palette Export & Design Tokens

CSS Variables
:root {
  --color-1: #3B82F6;
  --color-2: #60A5FA;
  --color-3: #1D4ED8;
  --color-4: #93C5FD;
  --color-5: #1E40AF;
}
SCSS Variables
$color-1: #3B82F6;
$color-2: #60A5FA;
$color-3: #1D4ED8;
$color-4: #93C5FD;
$color-5: #1E40AF;
Tailwind Config
colors: {
  'palette-1': '#3B82F6',
  'palette-2': '#60A5FA',
  'palette-3': '#1D4ED8',
  'palette-4': '#93C5FD',
  'palette-5': '#1E40AF',
}
JSON Design Tokens
{
  "paletteName": "Custom Generated Palette",
  "colors": {
    "color-1": "#3B82F6",
    "color-2": "#60A5FA",
    "color-3": "#1D4ED8",
    "color-4": "#93C5FD",
    "color-5": "#1E40AF"
  }
}

Palette Accessibility & Contrast Matrix

Highest Contrast Text/Background Pair
Text
#93C5FD on #1E40AFContrast Ratio: 4.84:1
Passes WCAG AAA

Pairwise Color Combinations

Aa
#93C5FD / #1E40AFRatio: 4.84:1
AA
Aa
#1D4ED8 / #93C5FDRatio: 3.72:1
Fail
Aa
#60A5FA / #1E40AFRatio: 3.43:1
Fail
Aa
#60A5FA / #1D4ED8Ratio: 2.64:1
Fail
Aa
#3B82F6 / #1E40AFRatio: 2.37:1
Fail
Aa
#3B82F6 / #93C5FDRatio: 2.04:1
Fail

Quick Answer: How do you generate a color palette around a base color?

Select a base HEX color and choose a harmony mode (such as complementary, analogous, or triadic). Click Regenerate Unlocked to create color combinations while keeping locked swatches fixed.

Frequently Asked Questions — Color Palette Generator

Authoritative answers to common questions about color palette generator concepts, standards, and workflow integration.

How do I generate a color palette online?

Click "Generate" in PaletteKey's Palette Generator to create a harmonious 5-color palette instantly. Lock colors you want to keep, then regenerate the remaining slots. Choose from harmony rules including complementary, triadic, analogous, split-complementary, and tetradic.

What is color harmony in design?

Color harmony is the pleasing arrangement of colors based on their positions on the 360-degree color wheel. Common harmonies include: Complementary (opposite colors, 180° apart), Triadic (three evenly spaced, 120° apart), Analogous (adjacent colors, 30° apart), and Split-Complementary (one color plus two adjacent to its opposite).

Can I lock specific colors while generating a palette?

Yes. Click the lock icon on any color swatch to freeze it. When you regenerate, PaletteKey keeps locked colors and only changes unlocked slots while maintaining the selected harmony rule. This is ideal for building palettes around an existing brand color.

How do I export a generated color palette?

PaletteKey supports 6 export formats: raw HEX/RGB/HSL values, CSS custom properties, SCSS variables, Tailwind CSS config, JSON design tokens (W3C DTCG), and CSV. Click export and copy-paste directly into your project.

What is a monochromatic color palette?

A monochromatic palette uses variations in lightness and saturation of a single hue. It's the safest choice for UI design because it guarantees visual harmony. PaletteKey's Shade & Tint Generator creates professional monochromatic scales from any base color.