One base color to five harmony schemes, each swatch in hex/rgb/hsl.
🎨 Harmony angles follow the classic color wheel: analogous ±30°/±60°, complement 180°, split 150°/210°, triadic 120°/240°. Monochrome keeps hue and saturation, stepping lightness. Every swatch shows hex, rgb(), and hsl() — copy the format your stack wants.
The Color Palette Generator is based on the following formula:
h' = (h + Δ) mod 360 tint = same h, s; l + 18 shade = same h, s; l − 18 Δ: analogous ±30°/±60° · complement 180° · split 150°/210° · triadic 120°/240°
Variables: h = Base hue 0-360° (hex → rgb → hsl) Δ = Rotation on the color wheel l = Lightness 0-100, clamped 4-96 s = Saturation, carried unchanged
Every harmony scheme reduces to a hue rotation on the HSL wheel. Tints and shades keep hue and saturation and step only lightness, which is what supplies a palette with its hover and border states.
Worked example: Step 1: Base #3b82f6 → rgb(59, 130, 246) → hsl(217, 91%, 60%). Step 2: Complement: (217 + 180) mod 360 = 37 → hsl(37, 91%, 60%). Step 3: Tint of base: l = 60 + 18 = 78 → hsl(217, 91%, 78%). Step 4: Shade of base: l = 60 − 18 = 42 → hsl(217, 91%, 42%). Result: the complementary palette shows the base, the warm ochre at 37°, plus tint and shade — the same swatches the tool renders.
Every color sits at a hue angle from 0° (red) through 120° (green) and 240° (blue) back to red. Harmonies are fixed rotations from your base: analogous at ±30° and ±60°, complement at 180°, split-complementary at 150°/210°, triadic at 120°/240°. That is why this tool computes in HSL — rotating hue is plain addition, and tints and shades are just lightness steps.
Analogous palettes sit close on the wheel and almost cannot clash — safest for dashboards and editorial layouts. Complementary pairs maximize contrast, ideal for one accent CTA on a calm base. Split-complementary keeps that pop with less vibration; triadic suits playful, colorful brands; monochrome (same hue, stepped lightness) reads premium and calm, which is why fintech and luxury brands love it.
Give the base color about 60% of the visual surface, a secondary palette color 30%, and the most contrasting one — often the complement or a tint of it — just 10% as accent. Keep the generated tint and shade for hover states, borders, and backgrounds: components designed from one palette stop looking glued together.
A palette is a set of discrete, flat colors for a design system; a gradient blends two or more colors into one continuous image. Grab the hex for CSS variables and Tailwind config, or the rgb()/hsl() string when a component library wants a function form — every swatch here copies in the format your stack expects.
More tools you might find useful
Generate fluid font sizes with CSS clamp().
Build linear, radial, and mesh gradients with live preview.
Tune box-shadow and glassmorphism visually, preview live, copy the CSS.
Turn an image into 16x16, 32x32 favicons and an Apple Touch Icon.