Color Palette Generator
Color Tools
Generate harmonic color palettes - complementary, analogous, triadic, tetradic, monochromatic, split-complementary. Export as CSS variables, JSON, or copy individual hex codes. Runs entirely in your browser.
217° 91% 60%
#000000 text · 5.77:1
37° 91% 60%
#000000 text · 11.12:1
217° 91% 78%
#000000 text · 10.75:1
37° 91% 42%
#000000 text · 6.79:1
217° 91% 90%
#000000 text · 15.7:1
Need to check a different text/background pair? Open the Color Contrast Checker.
Harmony wheel
How to use this tool
- Pick a base color. Click the color swatch or type a hex value to choose your starting color.
- Select a harmony rule. Choose complementary, analogous, triadic, tetradic, monochromatic, or split-complementary.
- Adjust the count. Use the slider to select how many colors the palette should contain (3–10).
- Copy or export. Click any hex swatch to copy that color, or use the export buttons to copy the entire palette as CSS variables or JSON.
Color harmony rules explained
Color harmony rules are systematic methods for selecting colors that look visually pleasing together. They are rooted in color theory and the relationships between hues on the color wheel.
Complementary
Complementary colors sit directly opposite each other on the color wheel (180° apart). The pairing produces maximum contrast and visual tension, useful for accents, call-to-action buttons, and anything that needs to stand out. Blue and orange, red and green, and yellow and purple are classic complementary pairs.
Analogous
Analogous colors are adjacent on the wheel (typically ±30° steps). They share a hue family, making them feel naturally cohesive and low-tension. Nature uses analogous palettes extensively. Think autumn leaves (yellow to orange to red). Great for backgrounds, illustrations, and brand identities.
Triadic
Three colors equally spaced around the wheel (120° apart). Triadic palettes are vibrant and offer high contrast while remaining balanced. To prevent visual overload, designers often use one color as dominant and the other two as accents.
Tetradic (square)
Four colors in two complementary pairs, 90° apart. Tetradic schemes are rich and complex. They work best when one color dominates; otherwise the palette can feel chaotic.
Monochromatic
A single hue explored at different lightness and saturation levels. Monochromatic palettes are elegant, easy to manage, and always harmonious. They are especially popular for minimalist designs, dark-mode UIs, and data visualizations where relative magnitude matters.
Split-complementary
The base color plus the two colors adjacent to its complement (150° and 210° away). The result is similar in visual energy to complementary but softer and less jarring. A popular compromise for designers who want contrast without the tension of a pure complement.
Neutrals in palettes
No brand palette is complete without neutral colors. Black, white, and grays serve as supporting players that allow the primary palette to breathe and maintain hierarchy. Best practices:
- Warm vs. cool neutrals: tint your grays slightly toward your brand hue for a more cohesive look. A brand with blue accents might use a slightly cool-tinted near-white (#F5F6FA instead of pure #FFFFFF).
- At least 5 neutral stops: most design systems define a neutral scale from near-white to near-black (e.g., 50, 100, 200, 400, 600, 800, 950) to cover all text, border, and background use cases.
- Off-black over pure black: pure #000000 can feel harsh against most backgrounds. A very dark gray (#0F172A or #111827) is typically more pleasant for body text.
Real brand palette examples
| Brand | Harmony type | Primary colors |
|---|---|---|
| Target | Complementary | Red (#CC0000) on white - strong contrast, high impact |
| Airbnb | Analogous (warm) | Coral pink (#FF5A5F), warm neutrals - welcoming, cohesive feel |
| Spotify | Complementary (dark) | Green (#1DB954) on near-black (#191414) - high contrast, energetic |
| Tetradic gradient | Purple -> pink -> orange -> yellow gradient logo |
Frequently asked questions
What is a color harmony rule?
Color harmony rules are systematic ways of selecting colors that look visually cohesive when used together. They are based on the position of hues on the color wheel. Common rules include complementary (opposite hues), analogous (adjacent hues), triadic (three equally spaced hues), and monochromatic (one hue at different lightness values).
When should I use complementary vs analogous colors?
Use complementary colors (opposite hues) for high visual impact and contrast - good for call-to-action buttons, highlights, and accents. Use analogous colors (adjacent hues) for harmonious, low-tension designs such as backgrounds, gradients, and brand palettes where cohesion matters more than contrast.
What is split-complementary and when is it useful?
Split-complementary uses the base color plus the two colors on either side of its complement. It provides almost as much contrast as complementary but with less tension, making it a popular choice for beginners. It works well when you want visual interest without harsh color clashes.
How do I export my palette?
Use the "Copy CSS variables" button to copy a :root {} block with named CSS custom properties. Use "Copy JSON" to get the palette as a structured JSON array with hex, rgb, and hsl values for each color. Individual hex codes can also be copied via the copy buttons next to each swatch.
Can I adjust the number of colors in the palette?
Yes. Use the count slider to choose between 3 and 10 colors. The harmony algorithm fills extra colors by cycling through the hue scheme and varying lightness.
Related tools
- Contrast CheckerTest likely text and background pairs from the generated palette for accessibility.
- Color BlindnessPreview how palette colors separate across common color-vision deficiencies.
- Gradient GeneratorBlend selected palette stops into a production-ready CSS gradient.
- Color ExtractorExtract a source palette from a photograph before generating related harmonies.