Color Palette Generator

Create harmonious color schemes from any base color in one click. Analogous, complementary, triadic, tetradic and more — with HEX, RGB and HSL codes, WCAG contrast ratios, and ready-to-paste CSS export.

Quick answer: pick a base color, choose a harmony rule, and press Generate (or the spacebar). Click any color to copy its HEX code, lock the colors you love and regenerate the rest, then export the whole palette as CSS variables, SCSS, JSON or a PNG image. Everything runs in your browser — free, with no sign-up.

Tip: press Space anywhere outside a text field to generate a new palette. Click a swatch to copy its HEX code; use the padlock to keep a color while the rest regenerate.

Export this palette

Send this palette to…

Carry these colors into the next step of your design. The palette travels as a HEX list in the link — the Gradient Generator turns the first two colors into a CSS gradient.

Your session

Every palette you generate in this tab is kept below, so you can go back to an earlier scheme, undo a change, or pin the keepers as favorites. Nothing leaves your browser.

Palette history

No palettes yet — press Generate and your schemes will appear here.

Favorite palettes

No favorites pinned yet. Pin a palette to keep it one click away while you keep exploring.

Favorite tools

No favorite tools yet — tap the ☆ on any tool below to pin it here.

Recently used tools

No tools opened yet — tools you visit from this page will appear here.

All generator tools

Palette presets

Short on inspiration? Start from one of these hand-picked combinations — click any preset to load it, then lock the colors you like and generate variations around them.

How to generate a color palette

  1. Pick a base color. Use the color picker or type any HEX code. Every harmony rule is built around this color's position on the color wheel.
  2. Choose a harmony rule. Analogous for calm, blended schemes; complementary for bold contrast; triadic and tetradic for rich, balanced sets; monochromatic and shades for a single-hue design.
  3. Set the size and generate. Choose 3–8 colors and press Generate or the spacebar. Each press builds a fresh scheme with new lightness variation.
  4. Lock the keepers. Padlock any color to hold it in place while the unlocked slots regenerate around it.
  5. Copy or export. Click a swatch to copy its HEX code, fine-tune individual colors in their cards, then export CSS variables, SCSS, JSON or a PNG strip.

Color harmony rules explained

A harmony rule is a recipe for picking hues that look good together, based on their angles on the color wheel. The worked example below uses the base color #2563EB — a blue at hue 221°, saturation 83%, lightness 53%.

RuleHow it picks huesFeelFrom #2563EB
AnalogousNeighbors within ±60° of the base hueCalm, cohesive, natural#25C6EB · #2563EB · #4A25EB
ComplementaryThe base hue and the hue 180° oppositeBold, high contrast#2563EB · #EBAD25
Split-complementaryBase plus the two hues beside its opposite (±150°)Strong but softer than complementary#2563EB · #EB4A25 · #C6EB25
TriadicThree hues spaced 120° apartVibrant and balanced#2563EB · #63EB25 · #EB2563
Tetradic (square)Four hues spaced 90° apartRich, varied, needs a dominant color#2563EB · #EB25C6 · #EBAD25 · #25EB4A
MonochromaticOne hue, varied saturation and lightnessElegant, minimal, foolproof#0B2C75 · #2563EB · #B9CDF9

Worked example: shades of #2563EB

Holding hue 221° and saturation 83% fixed and stepping lightness from dark to light gives a ready-made shade scale from the same base color: #0B2C75 (25% lightness), #1146BB (40%), #2563EB (53%), #6A94F1 (68%) and #B9CDF9 (85%). Try it: set the base color to #2563EB, choose “Shades & tints”, and set 5 colors.

Checking contrast for text

Every color card shows the WCAG contrast ratio of that color against white and against black, and recommends the more readable text color. For example, #2563EB scores 5.17:1 against white — passing WCAG AA for normal text (4.5:1) — but only 4.06:1 against black, so white text is the right choice on it. Use the darkest palette colors for text on light backgrounds and reserve vivid mid-tones for accents, buttons and highlights.

The 60-30-10 rule

A five-color palette maps neatly onto the classic interior-and-web design rule: use your dominant color for about 60% of the design (backgrounds, large areas), a supporting color for 30% (cards, sections, secondary elements), and a vivid accent for 10% (buttons, links, highlights). The remaining two colors work as neutrals and shade steps between them.

What to do with your palette next

A palette on its own is only half the job — it earns its keep when it is applied. Most designers continue in this order:

  1. Build a gradient. Send the palette to the Gradient Generator (use the “Send this palette to…” bar above) and turn your two strongest colors into a hero background, button or overlay gradient.
  2. Check the pairs. Use the contrast rows on each color card to pick text/background pairs that pass WCAG AA (4.5:1 for body text, 3:1 for large headings) before you commit to them in code.
  3. Share it as an image or code. Put the palette on a QR code for a brand board, export the CSS variables straight into your stylesheet, or download the PNG strip for a mood board or client deck.
  4. Keep the keepers. Pin your favorite palettes in the session panel above so a lucky Generate press never wipes out the scheme you loved two clicks ago.

The cheat sheet is a one-page text reference: every harmony rule with its hue offsets, the 60-30-10 proportions, WCAG contrast thresholds, and the shade scale worked example for #2563EB — handy kept open next to your design tool.

Frequently asked questions

How does a color palette generator work?

It starts from a base color on the color wheel (a hue from 0° to 360°) and applies a harmony rule — fixed hue offsets such as +180° for a complementary color or +120°/+240° for a triadic scheme — while varying lightness to keep the set balanced. This page converts between HEX, RGB and HSL, so every generated color is shown in all three formats.

What is the difference between analogous and complementary colors?

Analogous colors sit next to each other on the color wheel (within about 60°), so they blend smoothly and feel calm — good for backgrounds and large areas. Complementary colors sit opposite each other (180° apart), so they create strong contrast and make each other look more vivid — good for accents, buttons and calls to action.

How many colors should a palette have?

Five is the most versatile size: typically one dominant color, two supporting colors, one accent and one neutral-leaning shade. Websites often follow the 60-30-10 rule — 60% dominant, 30% secondary, 10% accent. This generator supports 3 to 8 colors; start with 5 and remove what you do not use.

What do the contrast ratios mean?

Each color card shows its WCAG contrast ratio against white and against black. WCAG AA requires at least 4.5:1 for normal text and 3:1 for large text. The card also tells you whether black or white text reads better on that color, so you can pick readable text/background pairs straight from the palette.

Can I export the palette to CSS?

Yes. The export panel produces ready-to-paste CSS custom properties (for example --color-1: #2563EB;), plus SCSS variables, a JSON array and a plain HEX list. You can copy any format to the clipboard or download it, and there is also a PNG strip image of the palette.

Is this color palette generator free and private?

Yes. It is completely free with no sign-up, and everything runs locally in your browser — your colors are never uploaded, stored or tracked. Random palettes use your browser's secure random generator (crypto.getRandomValues).

Can I send my palette to the Gradient Generator or another tool?

Yes. The “Send this palette to…” bar under the export panel carries your colors — as a HEX list in the link itself — into the Gradient Generator, QR Code Generator and several other tools, so you can keep working without copying codes by hand. Nothing is uploaded: the colors travel in the link you click.

Can I go back to a palette I generated earlier?

Yes. The “Your session” panel keeps every palette you generate in this tab as a clickable strip — click one to restore it, use Undo and Redo to step through changes, and pin the schemes you love as favorites. The history lives only in this tab's memory and clears when you close it, in line with the privacy note below.

Related tools

About this tool

The Color Palette Generator is one of 33 free utilities in the Online Utilities Suite at dev.conversiontools.online. Every tool runs entirely in your browser — nothing is uploaded, stored or tracked — so generating is instant and private. Pair it with the Gradient Generator to turn any two palette colors into a smooth CSS gradient.

Privacy

This page builds palettes locally in your browser: no account, no uploads, and nothing you generate is stored or sent to a server. Locked colors and settings live only in this tab's memory. Advertising on this site is served by Google AdSense, which may use cookies to personalize ads; you can opt out of personalized advertising in your Google ad settings.