Color Palette Generator

Start from any color and get a balanced five-color palette in one tap — then lock the keepers, regenerate the rest, and export straight to your stylesheet.

Build your palette

Seed color

Everything grows from one starting color — yours, or a surprise.

Accepts #RGB / #RRGGBB, with or without #. Example: #ff5733, 4a90d9.

That does not look like a valid hex color — try e.g. #4a90d9.

“Surprise me” picks a random seed, then builds a palette from it.

Harmony mode

How the five colors relate to each other on the color wheel.

Analogous: neighbors on the color wheel — calm and cohesive.

Your palette

Tap a color to copy its hex. Lock the ones you love before regenerating.

Export palette

Drop straight into your stylesheet or design tool.

CSS variables work in any modern stylesheet: color: var(--color-1);

Palette history

Your recent palettes, saved in this browser. Tap one to bring it back.

How It Works

A color palette is a small family of colors chosen to work together — the background, headings, buttons, and accents of a website, or the walls, sofa, and cushions of a room. Picking colors one by one by gut feeling usually ends in a clash, because a good palette is not a pile of pretty colors: it is a set of colors that share a hidden relationship. That relationship lives on the color wheel, and every harmony rule the generator offers is simply a different way of walking around it.

The color wheel arranges every hue in a circle measured in degrees: 0° is red, 120° is green, 240° is blue, and 360° wraps all the way back to red. When you enter a base color, the generator converts it to HSL, reads off its hue angle, and then applies geometry. Rotating the hue while keeping saturation and lightness in a similar range is what makes the resulting colors feel related even when they look very different — and converting the rotated values back to hex gives you codes you can paste straight into your project.

Complementary takes your hue and adds 180°, landing on the exact opposite side of the wheel. Opposites grab the eye — think blue and orange sports branding — which makes this the highest-energy harmony. The classic guidance: let one color star and use the other sparingly, because two complements at full strength and equal area tend to vibrate against each other.

Analogous picks the neighbors: your hue plus and minus about 30°. These are the combinations nature uses everywhere — forest greens melting into each other, ocean blues fading into teal — so the result feels calm and cohesive with almost no effort. Because analogous palettes can feel a little sleepy, designers usually anchor them with a neutral for text and let one of the hues dominate.

Triadic spaces three colors evenly, 120° apart, forming a triangle on the wheel. It is vibrant like a complementary scheme but more balanced, because no two colors are direct opposites. The trick is hierarchy: choose one dominant color and let the other two appear as accents, or the three will compete for attention.

Split-complementary keeps your base color and pairs it with the two colors flanking its complement — base hue plus and minus roughly 150°. You get nearly the punch of a direct complement, but the two partners are gentler and far easier to balance. Many designers consider this the most forgiving way to get strong contrast without a headache.

Tetradic (sometimes called rectangular) uses two complementary pairs at once — for example your hue, plus 60°, plus 180°, plus 240°. It is the richest option and the hardest to wield: give one color about 60% of the stage, a second about 30%, and let the last two appear only as small accents, or the design turns chaotic.

Monochromatic uses a single hue at many lightnesses. Tints mix the base color toward white, shades mix it toward black, in even steps from one end to the other. A monochromatic palette cannot clash — every color is literally the same hue — which makes it the safest choice for beginners. Its only real risk is dullness, and that is fixed with texture, typography, or a single contrasting accent.

In practice the tool works like this: set a base color (or let it suggest one), choose a harmony rule, and shuffle the unlocked colors until the family feels right. Lock any color you love so the next shuffle keeps it and re-rolls the rest around it. When the palette clicks, export the hex codes or ready-made CSS variables and paste them into your stylesheet — your recent palettes stay in the browser’s history so you can revisit yesterday’s experiments.

One more thing a finished palette needs: it has to work for everyone, not just for people with perfect color vision. That is why every harmony above keeps lightness varied across its colors — light, mid, and dark values side by side — so the colors stay distinguishable even for viewers who perceive hue weakly. It is also why working palettes always include neutrals: a near-white for backgrounds, a charcoal for text, and a mid gray for borders give your hues room to breathe and keep everyday reading comfortable. A palette of five pure hues and nothing else is a poster, not a design system.

Worked Example: Building a Palette From #336699

The setup

Start with #336699, a medium steel blue. Converted to HSL it is (210°, 50%, 40%) — hue 210° sits between blue (240°) and cyan (180°). Every harmony below is a rotation of that 210° angle, with saturation and lightness held steady, converted back to hex.

Step 1 — Complementary: hue + 180°

210 + 180 = 390, which wraps to 30°. HSL(30°, 50%, 40%) converts to channels (153, 102, 51) → #996633, a warm bronze. Blue against bronze is the classic high-contrast pairing — use the blue for large areas and the bronze for buttons and highlights.

Step 2 — Analogous: hue ± 30°

210 − 30 = 180° → #339999, a calm teal. 210 + 30 = 240° → #333399, a deep indigo. Together the three form an oceanic gradient — serene, professional, and almost impossible to get wrong.

Step 3 — Triadic: hue ± 120°

210 + 120 = 330° → #993366, a raspberry red. 210 − 120 = 90° → #669933, a leaf green. Three evenly spaced hues with real energy — pick the blue as the lead and let raspberry and green appear as small accents.

Step 4 — Split-complementary: hue ± 150°

210 + 150 = 360 → 0° → #993333, a brick red. 210 − 150 = 60° → #999933, a muted olive. Strong warmth against the cool blue, but softer and easier to balance than the direct bronze complement.

Step 5 — Monochromatic: tints and shades

Mix toward white in ten even steps; step 5 gives R = 51 + (255−51) × 0.5 = 153, G = 102 + 153 × 0.5 = 178, B = 153 + 102 × 0.5 = 204 → #99B2CC, a misty light blue. Mix toward black; step 5 gives R = 51 × 0.5 = 25, G = 51, B = 76 → #19334C, a deep navy ink. Same hue, five times the range.

Step 6 — Assemble a finished palette

Take the base, its complement, one analogous neighbor, one tint, and one shade: #336699 (primary), #996633 (accent), #339999 (secondary), #99B2CC (light background tint), #19334C (dark text ink). Five colors, one family, zero guesswork — and every code is ready to paste.

Common Palette Mistakes

Tips for Better Palettes

My saved numbers reuse them in any calculator

Save a number once — like your rent or hourly rate — then just type its name instead of the number, in any calculator here. You can also type formulas like 5000 * 1.1 right into any box.

    Saved only in this browser — nothing is sent to us.

    Frequently Asked Questions

    What is the best color harmony for a website?

    Analogous palettes (neighboring hues) feel calm and cohesive; complementary palettes (opposites) add energy and contrast. Monochromatic — one hue in five lightness steps — is the safest choice for beginners.

    How do I use a palette in my CSS?

    Export as CSS variables and paste the :root block into your stylesheet, then use var(--color-1) anywhere. The SCSS export works the same way with $color-1 variables.

    Can I keep some colors and change others?

    Yes — hit Lock on any color you like, then press Generate again. Locked colors stay put while the rest are rebuilt around the same seed and harmony.

    Where are my palettes saved?

    Your palette history lives in this browser’s local storage — no account needed. Tap any past palette to restore it instantly.

    Related Calculators

    Last reviewed: November 3, 2026 · Formulas verified for accuracy.