What Is a Color Palette Generator?
A color palette generator creates harmonious color combinations based on color theory. Starting from a single base color, it applies mathematical relationships on the color wheel — complementary, analogous, triadic, split-complementary, and tetradic — to produce palettes that look cohesive and professional.
Choosing the right color palette is one of the most impactful design decisions you can make. It affects brand perception, readability, emotional response, and accessibility. This tool takes the guesswork out of color selection and gives you production-ready HEX, RGB, and HSL values.
Color Harmony Rules
Complementary — two colors opposite on the color wheel. High contrast, high energy. Great for CTAs. Analogous — neighbouring hues, 30° apart on either side of the base. Harmonious and calming. Great for backgrounds and gradients. Triadic — three colors equally spaced (120° apart). Balanced and vibrant. Great for illustrations and infographics.
How to Use This Palette Generator
- Enter a base color — Paste a hex code or pick a starting color to build your palette around.
- Choose a color harmony — Select complementary, analogous, triadic, split-complementary, tetradic, or monochromatic — each creates a different color relationship.
- Adjust and refine — Edit any swatch with its colour picker or hex field, and lock colours you want to keep while regenerating the others.
- Export the palette — Copy as CSS custom properties, Tailwind config, SCSS variables, or a simple list of hex codes.
Worked example: five-colour harmonies from #3B82F6, before and after
Harmonies are now built in OKLCH: the hue is rotated around the base colour while its OKLab lightness stays the same, so a triad's three colours look equally light; a colour outside sRGB loses chroma only. When you ask for more colours than the scheme has hues, the extra slots are lighter or darker steps of those hues instead of repeats, and the base colour is kept exactly. Swatches show their WCAG contrast on white and on black. On October 13, 2026, with the random jitter fixed at its midpoint:
| Mode | Before (HSL rotation) | Now (OKLCH) |
|---|---|---|
| Triadic | #3A82F7 #F73A82 #82F73A #3A82F7 #F73A82 (3 distinct; 0.62 / 0.65 / 0.87) | #3B82F6 #E24956 #3BA01B #8EB9FF #FF9697 (5 distinct; three hues at 0.62, two tints at 0.78) |
| Tetradic | #3D84F6 #F63DE0 #F6B03D #3DF654 #3D84F6 (5th repeats 1st; 0.63–0.85) | #3B82F6 #D54B97 #B07D00 #009E7B #8EB9FF (four hues at 0.62, one tint) |
| Complement | #063C93 → #FACD85, a 180° sweep from dark to light | #3B82F6 #B07D00 #8EB9FF #EDAB10 #1953B0 (the pair, then a tint of each and a shade) |
Across 2,000 random base colours per mode (5 colours each), sets containing two near-identical colours (OKLab distance under 0.02) fell from 382 to 0 for triadic, 401 to 0 for tetradic, 37 to 0 for split-complementary and 57 to 0 for analogous. The lightness spread among the scheme's main hues fell from a median of 0.20 to 0.001 (triadic) and 0.22 to 0.001 (tetradic) on the 0–1 OKLab scale. In Chromium every mode gave 5 distinct swatches at desktop and 390px widths.
- Equal lightness is a starting point, not a rule. In Ou and Luo's experiment with 1,431 colour pairs (2006) and in their later model fitted to observers in 12 regions (2018), a lightness difference between colours raised harmony ratings, as did similar hue and similar chroma; Huang and colleagues found each of the five traditional harmony principles held in only 53–58% of 300 garment combinations (2017). Use the tints and shades the tool adds, or edit lightness per colour, when you need contrast.
- Contrast decides what can be text. At the same lightness as #3B82F6, the triad's red and green are about 3.4–4.0:1 on white, below the 4.5:1 WCAG asks for normal text; use them for fills and icons, or pick a darker shade for text. Each swatch shows its ratio so you can check at a glance.
- Very dark or very light bases. The base stays as you chose it, but derived colours are kept between 0.30 and 0.90 lightness; otherwise rotated hues would collapse into near-identical blacks or whites.
- Random mode is unchanged. It picks unrelated colours; lock the ones you like and switch to a harmony mode to build around them.
Sources
Checked on .
- Ottosson, B. (2020). A perceptual color space for image processing (OKLab)
- W3C: CSS Color Module Level 4, OKLab and OKLCH
- W3C: WCAG 2.2 Understanding SC 1.4.3 Contrast (Minimum)
- Ou, Luo: A colour harmony model for two-colour combinations (Color Research and Application, 2006)
- Ou et al.: Universal models of colour emotion and colour harmony (Color Research and Application, 2018)
- Huang et al.: Color harmony in two-piece garments (Color Research and Application, 2017)
Related tools
- Before shipping a generated palette, audit each color through the Gamut Mapper to confirm sRGB and Display P3 fit.
- Once you have a palette, the Gradient Stop Optimizer can turn any two palette colors into a smooth multi-stop gradient with no manual stop placement.
- A generated palette feeds directly into CSS Mesh from Palette for instant on-brand mesh gradients.
- To unify a generated palette under a warmer or cooler cast (matching a brand mood), pass each color through the Color Temperature Shifter.
- Each anchor color in a palette typically needs five interaction states. The Color Desaturator generates them in one click from a single base color.
- For a full design-system token set (primary, secondary, neutral, success, warning, error scales) emitted from a single brand anchor, the Semantic Color Token Generator covers all six semantic scales at once.
Frequently Asked Questions
📖 Learn More
Related Article The Complete Guide to Color Palettes → Related Article How to Generate a Color Palette →Built by Derek Giordano · Part of Ultimate Design Tools