Color Palette Generator
Generate 6 real color harmonies (Complementary, Analogous, Triadic, Tetradic, Split-Complementary, Monochromatic) from a base hex color, with HSL math verified accurate against known references. Every swatch now shows a real WCAG contrast ratio and recommended readable text color. Export as HEX, RGB, HSL, or a CSS custom-property line — no image export despite older claims, and CSS output names each variable after its own hex value, not semantic labels like 'primary.'
Base Color
Generated Palette
#b26cf4
Contrast 6.34:1 · AA (black text)
#a3f755
Contrast 15.99:1 · AAA (black text)
#f146ee
Contrast 6.85:1 · AA (black text)
#f9fc5a
Contrast 19.10:1 · AAA (black text)
#fa479e
Contrast 6.46:1 · AA (black text)
#f1a14b
Contrast 9.94:1 · AAA (black text)
How to Use This Tool
Pick a base color with the color swatch or type a hex code directly.
Pick a base color with the color swatch or type a hex code directly.
Choose one of 6 harmony types
Complementary, Analogous, Triadic, Tetradic, Split-Complementary, or Monochromatic.
Pro Tip
Use each swatch's on-screen contrast rating as a first filter for text-on-background pairings — a color rated 'Fail' shouldn't be used as a solid background for body text regardless of how well it fits the harmony. That rating is specifically for the swatch against white/black text, though; if you're pairing two palette colors directly against each other (not text), verify that specific combination with a dedicated contrast checker before committing.
About This Tool
When to Use
- A freelance UI designer, Wren, generates a triadic palette from her client's brand blue to pitch three cohesive color directions in an initial mood board.
- A frontend developer, Kwame, generates a monochromatic scale from a single brand hex and manually maps the resulting swatches onto his Tailwind config's 50-900 shade tokens, since the tool outputs plain hex/CSS values rather than Tailwind-specific token names.
- An indie app developer, Roísín, generates a 4-color analogous palette for a meditation app, favoring low-saturation blues and greens that feel calm rather than energetic
Key Details
A color palette generator produces a set of related colors from a single seed color using color-wheel math — this tool offers 6 real harmony types (Complementary, Analogous, Triadic, Tetradic, Split-C...
Worked example
Kwame enters his brand hex #2563EB and selects Monochromatic with 9 steps. The tool converts the hex to HSL (H:221°, S:83%, L:53%), then generates 9 swatches by holding hue and saturation constant while stepping lightness in even increments across a fixed band of the base lightness ±30 points — from 23% up to 83% for this particular color, producing a scale from a dark #0a296b to a light #b0c6f8 (not a full near-black-to-near-white range, since the band is always ±30 from the base, not a fixed 5%-95%). He copies the hex values into his Tailwind config, manually assigning them to blue-900 through blue-50 from darkest to lightest.
Interpreting your result
Every harmony is computed with real, verified HSL math — hue rotation, saturation, and lightness are genuinely calculated, not randomly assigned, aside from a small ±5-point saturation/lightness jitter added to non-monochromatic harmonies for visual variety. Remember that Analogous widens significantly at higher color counts (up to 330° of hue spread at 12 colors), so if you want a tight, closely-related analogous set, keep your count low — 3 to 5 colors stays within the traditional analogous range. Each swatch's contrast rating (AA/AAA/Fail) tells you whether the recommended white-or-black text is actually readable on that background — a swatch that looks visually pleasant in the palette can still rate 'Fail' if it's a mid-tone that lacks enough contrast against either text color.
Color Palette Generator FAQ
What color harmonies does this generate?
Complementary (directly opposite on the color wheel — high contrast), analogous (adjacent colors — harmonious and cohesive), triadic (3 evenly spaced — balanced vibrancy), split-complementary (base + two adjacent to the complement — tension with variety), and tetradic (4 colors, 90° apart — rich but complex). Each harmony serves different design goals.
How should I use complementary colors?
Complementary colors create maximum contrast — ideal for call-to-action buttons, headings, and emphasis elements. The key is proportion: use them 80/20, not 50/50. The dominant color fills 80% of the space; the complementary color is the accent. Direct 50/50 use creates visual vibration that is hard to look at.
Can I export the palette as CSS variables?
Yes — the CSS format outputs a custom-property line per color, like --color-3b82f6: #3b82f6;. Note the variable name is generated from the color's own hex value, not semantic labels like --color-primary or --color-secondary — you'll need to rename them yourself if your project uses semantic tokens.
What is the 60-30-10 design rule?
In UI and interior design, use 60% dominant color, 30% secondary color, and 10% accent. This tool doesn't label which generated swatch is 'dominant' vs. 'accent' — that's a judgment call you make yourself. A common approach: use your base color as the 60% dominant, and treat a complementary or analogous swatch as the 10% accent.
How do I pick accessible color combinations?
Text requires at least 4.5:1 contrast ratio against its background (WCAG AA) for normal text, or 7:1 for AAA. Every swatch now shows its own real contrast ratio and AA/AAA/Fail rating against the recommended white-or-black text color, computed with the standard WCAG relative-luminance formula — no need to run it through a separate checker for that specific pairing. If you're pairing two palette colors directly against each other rather than white/black text, still verify that specific combination with a dedicated contrast checker.
Can I build a palette around my existing brand color?
Yes. Enter your brand's primary hex color as the base and choose Complementary, Analogous, Triadic, or any of the other harmonies — the tool builds the palette around it, keeping your brand color as the first swatch while generating harmonious companions.
Master Your Entire Toolkit
Access 500+ specialized calculators and tools designed for precision. No sign-up required, 100% free.
Built and reviewed by the Toolzip Team