Skip to content
brownie.tools

Palette Generator

Build 2–8 color palettes, lock favorites, adjust HSL, and copy CSS, Tailwind, or JSON.

Palette updated: 5 colors

W:FailB:AA

rgb(100, 103, 242)

hsl(239, 84%, 67%)

W:FailB:AAA

rgb(242, 239, 100)

hsl(59, 84%, 67%)

W:FailB:AA

rgb(126, 100, 242)

hsl(251, 84%, 67%)

W:FailB:AAA

rgb(216, 242, 100)

hsl(71, 84%, 67%)

W:FailB:AA

rgb(154, 100, 242)

hsl(263, 84%, 67%)

Color Blindness Preview

Protanopia (Red-blind)

Deuteranopia (Green-blind)

Tritanopia (Blue-blind)

Achromatopsia (No color)

Protanomaly (Red-weak)

Deuteranomaly (Green-weak)

Tritanomaly (Blue-weak)

UI Preview
CTA
Get Started
Learn More
:root {
  --color-color-1: #6467f2;
  --color-color-2: #f2ef64;
  --color-color-3: #7e64f2;
  --color-color-4: #d8f264;
  --color-color-5: #9a64f2;
}

Runs locally in your browser. Nothing is uploaded or sent to a server.

Enter a HEX value in Base Color, choose a Harmony, and set Colors to generate a palette of two to eight swatches. Changes update automatically; Generate or Space picks a random base instead. Lock favorites, edit individual HSL values, and compare contrast against white and black. Processing runs in your browser. Copy CSS Variables, SCSS Variables, Tailwind v3, Tailwind v4, or JSON, and inspect color blindness simulations and interface previews before using the colors.

Updated

Pick colors straight from any web page with the free Color Picker extension — HEX, RGB, HSL and OKLCH in one click. Add to Chrome · Add to Edge · Add to Firefox

How do I generate a palette from a base color?

Enter #ff0000 in Base Color, choose Triadic under Harmony, and move Colors to 3. With no locked swatches, the result is red #ff0000, green #00ff00, and blue #0000ff. The generator converts the base to HSL, keeps saturation at 100% and lightness at 50%, and adds hue offsets of 0°, 120°, and 240°. These are reproducible calculations rather than suggested color names.

Choose CSS Variables under Export as to obtain this output:

:root {
  --color-color-1: #ff0000;
  --color-color-2: #00ff00;
  --color-color-3: #0000ff;
}

Typing a valid base or changing a setting updates the palette automatically. Generate and the Space shortcut choose a new random base; they are not an Apply action for your entered HEX. The initial setup uses #6366f1, Complementary, and five colors. Start with your own brand value when continuity matters, then lock any swatches you want to retain.

How are the eight color harmonies calculated?

HSL expresses hue as an angle around a wheel: red is 0°, green 120°, and blue 240°. Adding 360° returns to the same hue. Except for Monochromatic, the generator preserves the base saturation and lightness and changes hue. Equal HSL lightness does not mean equal perceived brightness or equal contrast, so harmony is a starting relationship rather than a readability guarantee.

Hue offsets used by each harmony
HarmonyCalculation from the base hueUseful starting role
Complementary0°, 180°; additional pairs shift by 12°Opposing main and accent colors
AnalogousEven spacing across min(90°, count × 20°)Related section colors
Triadic0°, 120°, 240°Three distinct hue roles
Split-Complementary0°, 150°, 210°A base with two nearby opposing accents
Double Split0°, 30°, −30°, 180°, 150°, 210°Neighbors around opposing hues
Tetradic0°, 90°, 180°, 270°Four distinct hue roles
Compound0°, 30°, 60°, 180°, 210°Neighboring hues with opposing accents
MonochromaticFixed hue and saturation; lightness from 15% to 85%A light-to-dark sequence

All modes accept the same two-to-eight color range. For the fixed lists from Triadic through Compound, smaller counts take the first offsets in order. Larger counts repeat the list with 15° added per cycle. Thus choosing a harmony name does not force its traditional number of colors. Inspect the chosen count before assigning separate roles to swatches.

How does Analogous differ from Monochromatic?

Analogous spreads hue symmetrically around the base. With five colors its offsets are −45°, −22.5°, 0°, 22.5°, and 45°; with two, they are −20° and 20°. An even count does not include the exact base hue. This explains why the first displayed color can differ from your input even before any manual edits.

Monochromatic keeps hue and saturation but calculates lightness as 15 + 70 × i / (count − 1), where the first index is zero. Five colors therefore use 15%, 32.5%, 50%, 67.5%, and 85% lightness. The base lightness is not retained. Use Color Shades Generator when your next task is exploring shades rather than relationships between hues.

How can I lock and fine-tune individual colors?

Select a swatch to expose H, S, and L sliders. Hue ranges from 0° to 360°; saturation and lightness range from 0% to 100%. Manual edits change that swatch without changing Base Color. Locking preserves its current position during regeneration, so a locked palette can intentionally depart from the selected harmony.

Reducing Colors removes locks outside the remaining positions. Applying a preset clears all locks. Arrow keys select swatches, L toggles the selected lock, C copies its HEX, and Esc deselects. These shortcuts are ignored while typing in an input, select, or textarea. Copy the displayed HEX for the exact value; the nearby CSS color name is the closest named match, not necessarily an exact synonym.

How should I check contrast and color blindness?

W means contrast against white, and B means contrast against black. The badges use WCAG 2.2 normal-text thresholds: AA at 4.5:1 and AAA at 7:1. They do not compare every swatch with every other swatch. Test your actual foreground and background together in Contrast Checker before assigning text, button, or border roles.

Color Blindness Preview shows Protanopia, Deuteranopia, Tritanopia, Achromatopsia, Protanomaly, Deuteranomaly, and Tritanomaly. These are approximate RGB transformations, not individual vision predictions. If categories look similar, add labels, icons, or patterns. A harmony calculation alone cannot ensure distinguishable status messages or chart series.

How should I apply a palette to a layout or dark interface?

Open UI Preview and switch between Landing, Dashboard, and Shop. These fixed mockups place colors into surfaces, navigation, actions, and accents. Some positions use fallback colors when the palette is short; they are not previews of your own website. Treat them as composition checks, then test the actual layout.

For Tetradic, try a dominant surface, a secondary region, and smaller accents instead of giving every hue equal area. A 60–30–10 allocation is an optional composition exercise, not a generator setting. For dark interfaces, adjust lightness and saturation manually and recheck each text pair. There is no automatic dark-theme conversion or universal saturation reduction that ensures readability.

What do the export formats contain?

CSS Variables uses a :root block; SCSS Variables uses declarations such as $color-color-1. Tailwind v3 exports a JavaScript configuration under theme.extend.colors. Tailwind v4 uses an @theme block. Generated labels become color-1 and onward, or shade-1 for Monochromatic; the tool does not assign semantic names such as primary or danger.

JSON contains flat string values keyed by those labels. Adapt it to your token pipeline's required schema. Export as changes the copyable text, rather than downloading an image or stylesheet. Use Color Converter for additional color representations before integrating the values into an existing system.

What do presets, history, and sharing preserve?

Trending Presets contains 25 starting points grouped into Minimal, Nature, Vibrant, Corporate, and Dark. A preset supplies a base, harmony, and color count. Recent Palettes keeps up to ten previous HEX lists before Generate or preset application. It does not record every slider adjustment, preserve past harmony settings, or provide a full undo stack.

History stays in page memory and clears on reload. Restoring clears locks and updates the base and count, which can trigger regeneration under the current harmony. Share copies colors, harmony, and lock indices into a Base64 URL fragment. Palette calculations run locally; sharing the link deliberately exposes its readable encoded values to recipients. Keep a copied code export for exact archival values.

How to Use Palette Generator

  1. Base Color

    Enter a three- or six-digit HEX value, or use the color picker. The palette updates when the input is valid.

  2. Harmony

    Choose one of eight modes, then adjust Colors to between 2 and 8. Use Generate only when you want a random base color.

  3. Lock color

    Select a swatch to reveal Hue, Saturation, and Lightness sliders in the full-width editor below the palette. Use Lock color, or press L with a swatch selected, to retain it during regeneration.

  4. UI Preview

    Compare Landing, Dashboard, and Shop. Open Color Blindness Preview and inspect the W and B contrast badges on each swatch.

  5. Export as

    Choose CSS Variables, SCSS Variables, Tailwind v3, Tailwind v4, or JSON and copy the output. Share copies a link containing colors, harmony, and lock positions.

Frequently Asked Questions

Enter your value in Base Color, choose Harmony, and adjust Colors from 2 to 8. Three- and six-digit HEX values work, with or without the leading hash. Valid changes regenerate automatically. Generate chooses a random base rather than confirming the typed color. Analogous places colors around the base hue, so the first swatch is not necessarily the entered color; Monochromatic replaces its lightness.

Double Split uses six ordered hue offsets: 0°, 30°, −30°, 180°, 150°, and 210°. Compound uses five: 0°, 30°, 60°, 180°, and 210°. A smaller Colors setting takes the beginning of the list, so Double Split with three colors does not include a complementary hue. Above the list length, the generator cycles through the offsets with an additional 15° per cycle.

No. Each swatch's W and B badges evaluate normal-text contrast against white and black only. AA requires at least 4.5:1 and AAA at least 7:1 under WCAG 2.2. They do not test every pair in the palette or every preview element. Color Blindness Preview provides seven approximate simulations; use these alongside contrast checks and labels or patterns that communicate meaning without color alone.

Choose a format under Export as and copy its code. CSS Variables wraps properties such as --color-color-1 in :root; Tailwind v4 wraps the same properties in @theme. Tailwind v3 produces module.exports with theme.extend.colors keys such as color-1. Merge that configuration into your project rather than replacing unrelated settings. JSON is a flat label-to-HEX object, not a complete typed design-token package.

Recent Palettes keeps up to 10 previous HEX lists in page memory, captured before Generate or preset application. It does not store harmony settings or locks, and a reload clears it. Share copies a URL with Base64-encoded colors, the current harmony, and locked indices in the fragment after #. The encoding is readable, not encryption. Keep a copied export when you need a durable record of exact values.