Palette Lab · Color tools

Color palette generator Find the colors that work together.

Explore five-color combinations, keep the colors you like and refine the rest. Preview actual pairs before copying a palette into your project.

Free · Six harmonies · Lock, regenerate and undo

Explore a five-color palette

Choose a harmony, lock colors you want to keep and regenerate the rest. Undo restores your previous working state.

Your working palette

Edit a color directly, lock it against regeneration or copy its CSS value.

1Original
#336699

2
#61cbeb

3
#7175ba

4
#dbecf7

5
#111f44

A lock prevents automatic regeneration. You can still edit a locked color manually.

Try a real color pair

Contrast ratio: 13.33:1 · Normal text AA: Pass

Selected pair

A color story, in context.

Preview the palette on real text. Review the actual font, size and interaction states before using it.

Reversed pair

A color story, in context.

Preview the palette on real text. Review the actual font, size and interaction states before using it.

Chip labels use black or white for readability. That does not mean every pair in the palette passes WCAG. Previews and ratios use mapped sRGB.

Check this pair

Export your palette

:root {
  --brand-1: #336699;
  --brand-2: oklch(79.1953376% 0.1069456186 220.43305742);
  --brand-3: oklch(58.84077371% 0.1046734071 280.43305742);
  --brand-4: oklch(93.4372593% 0.0232259808 235.43305742);
  --brand-5: oklch(25.07778102% 0.0718897404 265.43305742);
}

Merge the theme snippet into your project. Use complete class names in source files so Tailwind can detect them. JSON is a plain color map, not a design-token specification.

Color calculations run in your browser. The site also loads assets, advertising and analytics.

Explore relationships, then refine the details

A harmony is a starting point for design decisions.

Choose how the hues relate

Analogous, complementary, split-complementary, triadic, tetradic and monochromatic schemes use explicit OKLCH hue offsets. Lightness and chroma vary to create different roles. Other tools may use a different color wheel and produce different complements; none of these rules guarantees a successful design.

Conceptual color arc around a blue reference sample

Keep the colors you like

Lock any swatch before generating another combination. Locks preserve exact stored color values; direct editing still lets you make a deliberate change. Undo restores the preceding palette, reference, scheme and locks. Compare selected pairs in both directions and export the current values together.

Five swatches with one fixed by a glass lock and alternative arrangements

How to generate and refine a palette

Use the reference as guidance and locks to keep decisions.

01

Choose a reference and harmony

Paste an opaque color and select a scheme. The reference guides colors that are newly generated. A grayscale reference stays achromatic; choose a chromatic reference when you want hue-based variation.

02

Lock, regenerate or edit a swatch

The original first swatch starts locked. Lock other colors you want to keep, then generate alternatives for unlocked slots. Change a swatch directly for a specific value, even if locked. Undo can restore an earlier working state; it is limited to the current page session.

03

Test the pair and export the palette

Pick foreground and background swatches and review their actual sRGB contrast. Export the current palette as CSS, SCSS, Tailwind v4/v3 or a plain JSON color map. The page URL carries the palette and locks, while the canonical URL remains the clean tool address.

Color palette generator FAQ

Harmony rules, locked colors and practical handoff.

Can I keep one color and regenerate the others?

Yes. Lock that swatch before generating. Locked values stay unchanged when generating with another reference or harmony. If all five swatches are locked, generation is disabled until you unlock one. Direct manual edits remain possible.

What is the difference between a palette and a shade scale?

A palette combines colors for different roles, often across multiple hues. A shade scale creates lighter and darker versions around one source. Use this page to explore combinations and the Tailwind scale generator for eleven 50–950 shades.

Which color-harmony rules are used?

The tool uses OKLCH hue offsets: nearby hues for analogous schemes, 180° for complements, ±150° for split complements, 120° for triads and 90° for tetrads. Lightness and chroma vary; monochromatic schemes retain one hue. These are algorithm choices, not a universal definition of good color.

Why do complementary colors differ from another generator?

Color wheels and spaces differ. This generator rotates OKLCH hue, while another may rotate HSL or use an artist’s wheel. Gamut handling and lightness also affect the result. Compare the actual colors rather than treating one complement as the only correct answer.

Can I edit a locked color or undo a change?

Yes. Locking prevents automatic regeneration, not deliberate editing. Undo restores palette changes, locks, reference and scheme from the session history (up to 30 states). Reloading or switching language preserves the current palette through its URL, but not the undo history.

Is every generated combination accessible?

No. Harmony and text contrast solve different tasks. Use the selected foreground/background preview and the contrast checker for real pairs. Color must also be accompanied by text, shapes or other cues when it carries meaning.

What can I export, and are colors preserved?

CSS variables, SCSS variables/map, Tailwind v4 @theme, v3 configuration and JSON all use the current palette. Original/CSS mode preserves stored sources; HEX maps to sRGB and rounds to 8-bit channels. JSON is a plain color map and is not advertised as a specific token standard.

Can I use transparency or generate a palette from a photo?

This generator currently requires opaque reference and swatch colors, and rejects alpha instead of discarding it. For a photo, start with the image palette extractor and bring a chosen color here. That task differs from generating harmony-based combinations.

Technical references: CSS Color 4 · Color.js · OKLab · Tailwind v4 · Tailwind v3 · WCAG 2.2 · 1.4.1

Keep a color. Find its companions.

Lock your favorites and explore another combination.

No palette is automatically certified for accessibility; check the pairs you actually use.