InstantPalette Color Palette Generator

Mood
Harmony
Colors
5
Neighbor contrastContrast
Format

Drag, or use the arrow keys

More color tools

How InstantPalette builds a palette

Every palette starts from one base hue. The harmony mode sets where the other hues sit on the color wheel, and the mood gives each color a job: a dark for text, a main color, an accent, a soft tone and a light background. Lock the colors you want to keep and generate again: the rest re-harmonize around them.

How to use it

  1. Choose a mood and a harmony. Mood sets how light and strong the colors are: Balanced, Soft, Bold, Earth or Classic. Harmony sets the hues: Random spaces them by the golden angle (137.5°), and the other five modes use fixed angles on the wheel.
  2. Press Space, or tap Generate. Every press builds a new palette in the current mode, and See it on shows it on a website, an app, a dashboard, a poster and a card. Undo brings back the one before.
  3. Lock the colors you like. Locked colors stay put and anchor the harmony. Keys 1–8 lock and unlock by position.
  4. Tune a single color. Regenerate just that swatch, or open Edit to type a hex code, drag hue, saturation and lightness, or pick a color from your screen. Drag its Move button to change the order.
  5. Copy or export. Click any code to copy it. Export CSS variables, SCSS, Tailwind v4 or JSON, or download a CSS file or PDF.

The six harmony modes

Angles are measured from the base hue on the HSL color wheel. The dial next to each mode is the same one in the Harmony control above.

Random

137.5° steps

Hues step around the wheel by the golden angle, so none crowd together. Good for exploring, and for charts that need clearly different categories.

Best for exploring, and charts that need clearly different categories.

Complementary

0° · 180°

Hues from opposite sides of the wheel. The strongest contrast of any mode, so let one side lead and keep the other for accents.

Best for calls to action and bold accents on a calm base.

Analogous

±30°

Neighboring hues 30° apart (closer at 6 to 8 colors, so the whole palette stays within 120°). Calm and cohesive, and the easiest mode for gradients and backgrounds.

Best for backgrounds, gradients and calm, natural brands.

Triadic

0° · 120° · 240°

Three hues evenly spaced around the wheel. Lively and balanced; it works best when one hue dominates.

Best for playful brands, illustration and kids’ products.

Split-complementary

0° · 150° · 210°

A base hue plus the two hues beside its complement. Nearly the contrast of complementary, with less tension.

Best for interfaces that need one accent with less tension.

Monochromatic

0°

One hue at different saturation and lightness. Quiet and unified; add a neutral or a single accent when you need emphasis.

Best for minimal interfaces, dashboards and data scales.

Contrast: what AA and AAA mean

WCAG 2.2 measures contrast as a ratio, from 1:1 (no difference) to 21:1 (black on white). InstantPalette shows two kinds.

#3E7C8C Aa 4.7 AA

The Aa readout on each swatch is the better of black or white text on that color, with its ratio and level. Every color passes AA with at least one of the two.

Neighbor chips on the seams show the ratio between two side-by-side colors. Turn on Neighbor contrast and Generate keeps every pair at 4.5:1 (AA) or 7:1 (AAA).

LevelNormal textLarge textIcons and borders
AA4.5:13:13:1
AAA7:14.5:1–

To check one specific pair of colors, or every pair in a palette at once, open the color contrast checker.

Large text means 24px, or 18.66px bold. Side-by-side colors only need contrast when one sits on the other, as text, icons or input borders.

Frequently asked questions

How do I generate a color palette?

Click the Generate button or press the Space key to create a new color palette. Each generation creates a harmonious set of colors based on your selected harmony mode, and colors you have locked stay in place. Undo brings back the palette before.

What are color harmony modes?

Color harmony modes are different mathematical approaches to creating pleasing color combinations:

  • Random: Uses golden angle distribution (137.5°) for balanced color selection with optimal spacing on the color wheel
  • Complementary: Colors positioned 180° apart on the color wheel, creating high contrast and vibrant combinations
  • Analogous: Colors spaced 30° apart (closer together at 6 to 8 colors, so the palette stays within 120°), producing harmonious and cohesive palettes ideal for gradients
  • Triadic: Three colors equally spaced at 120° intervals, offering balanced yet vibrant schemes
  • Split-Complementary: Base color plus two adjacent to its complement (150° and 210°), softer than complementary
  • Monochromatic: Single hue with varying saturation and lightness, creating unified elegant palettes

For an in-depth explanation of when to use each harmony mode, see our Complete Color Theory Guide.

What are moods?

Mood sets how light and how strong the colors are, while harmony sets their hues. Balanced gives each color a job: a dark color for text, a main color, an accent, a soft tone and a light background. Soft makes gentle pastels, Bold makes strong colors between near-black and near-white, and Earth makes muted clay, moss, sand and slate. Classic is the original look, where every color is strong. Changing the mood regenerates the colors you have not locked.

What is the Neighbor contrast (accessibility) filter?

The Neighbor contrast control (in the top bar, or in Palette settings on phones) makes every generated palette meet a WCAG contrast ratio between adjacent colors:

  • Off: No contrast requirements. Generates colors freely for maximum variety
  • AA 4.5:1: Adjacent colors have at least a 4.5:1 contrast ratio (WCAG AA standard for normal text)
  • AAA 7:1: Adjacent colors have at least a 7:1 contrast ratio (WCAG AAA standard)

This feature is perfect when creating palettes where colors will be used next to or on top of each other (like UI elements, data visualizations, or adjacent sections). At 4.5:1 or more, palettes alternate between dark and light colors. The chips on the seams between colors show each pair’s ratio with a check or a cross. If two colors you locked can’t reach the ratio, the generator tells you which pair to change.

Can I see my palette the way a color-blind person does?

Yes. Open Neighbor contrast in the top bar (Palette settings on phones) and choose Red, Green or Blue under Color-blind view. The swatches then look the way they do to people with protanopia, deuteranopia or tritanopia. Only the view changes: codes, exports and links stay the same.

How do I lock a color I like?

Click the lock with the color’s number on any swatch to lock it (at the top of each column, or at the right of each row on phones). Locked colors remain unchanged when you generate new palettes, and the other colors re-harmonize around them. You can also press the number keys 1 through 8 to lock or unlock colors by position. A locked color shows a filled lock and the word “Locked”.

How do I refresh a single color?

Point at a color (or move keyboard focus into it) and click the Regenerate button (circular arrow) to regenerate just that color while keeping all others unchanged. On phones and tablets, tap ••• on the color, then Regenerate. This is useful when you like most of your palette but want to explore alternatives for one specific color. The refresh respects your selected mood, harmony mode and Neighbor contrast settings. Note: You cannot regenerate a locked color. Unlock it first if you want to refresh it.

How do I change the order of the colors?

Point at a color and drag the Move button (the two arrows) to its new place. With the keyboard, focus the same button and press the left or right arrow key. On phones and tablets, tap ••• on the color, then Move earlier or Move later. A locked color keeps its lock, and Undo puts everything back.

What do the numbers on each swatch mean?

The number beside the lock is the color’s position, and the key that locks it. The Aa line is the WCAG contrast ratio of the better of black or white text on that color, with its level:

  • AAA (7:1+): Highest accessibility standard. Excellent for all text sizes and users with visual impairments
  • AA (4.5:1+): Standard accessibility level. Suitable for normal text (meets WCAG 2.1 guidelines)
  • Below 4.5:1: Insufficient contrast for normal text. 3:1 is enough only for large text and icons

Every color passes AA with black or white text, so a swatch always shows AA or AAA. The chips on the seams between two colors show their contrast with each other (point at a seam, or turn on Neighbor contrast); click a chip to see which text sizes pass.

How can I edit a specific color?

Click Edit (the pencil) on any color, or tap ••• and then Edit on phones. Type a hex code (or paste an RGB, HSL or OKLCH value), drag the hue, saturation and lightness sliders, open your system’s color picker, or use the eyedropper in browsers that support it. The palette updates instantly; Revert or Esc restores the original. The edited color remains unlocked unless you manually lock it.

What color formats are available?

Choose the format with the Format control in the top bar, or press F. The swatches, Copy all and the copied codes all follow it:

  • HEX: Hexadecimal format (e.g., #3F51B5) - standard for web design
  • RGB: Red, Green, Blue values (e.g., rgb(63, 81, 181)) - used in CSS and design tools
  • HSL: Hue, Saturation, Lightness (e.g., hsl(231, 48%, 48%)) - intuitive for color adjustments
  • OKLCH: Lightness, Chroma, Hue in a perceptual color space (e.g., oklch(0.552 0.068 216.8)) - used by modern CSS and Tailwind v4

Click any code to copy it to your clipboard instantly. On phones, tap ••• on a color to copy it in any format.

How do I copy or export colors?

You have several options:

  • Copy individual color: Click the code on any swatch to copy it in the current format
  • Copy all colors: Click Copy all or press C to copy every color at once, in the current format
  • Copy code: Open Export to copy the palette as CSS variables, SCSS, Tailwind v4 (@theme) or JSON
  • Export as PDF: Choose PDF with contrast in Export or press P to download a PDF document with full color details and WCAG contrast ratios
  • Export as CSS: Choose CSS file in Export or press E to download a CSS file with colors as CSS variables (--color-1, --color-2, etc.)
  • Share: Copies a link that opens this exact palette

On phones, these are in the ••• menu next to Generate.

What’s included in the PDF export?

PDF exports include comprehensive color information perfect for client presentations and documentation:

  • Large color swatches with visual previews and color names
  • All color formats (HEX, RGB, HSL and OKLCH) for each color
  • WCAG contrast ratios vs white and black text with AA/AAA ratings, and the contrast between neighboring colors
  • Metadata: Timestamp, harmony mode, and color count
  • Professional formatting suitable for client deliverables

You can export the current palette, individual palettes from the Library, or your entire history or saved palettes as a multi-page PDF document.

Can I view my previously generated palettes?

Yes! Click Library or press H. The History tab shows your last 10 palettes, and the Saved tab shows the palettes you saved with the heart or S. Both are stored in your browser’s local storage only; nothing is uploaded.

Each palette shows:

  • Color strip: Visual preview of every color
  • Harmony mode & color count
  • Time: When the palette was created (e.g., “4 min ago” or “Yesterday, 4:12 PM”)
  • Actions: Click the palette to load it, or save it, export it to PDF or delete it (with Undo)

At the bottom of the Library you can export a whole tab as one PDF, and use Export JSON and Import to back up your palettes or move them to another browser.

How do I change the number of colors?

Use the − and + buttons under Colors in the top bar (in Palette settings on phones) to choose between 2 and 8 colors. You can also press + to increase or - to decrease the color count. Adding a color keeps the ones you have and fits the new one into the harmony; removing one drops the last color.

What keyboard shortcuts are available?

The following keyboard shortcuts speed up your workflow:

  • Space - Generate new palette
  • 1-8 - Lock/unlock specific color by position
  • C - Copy all color codes
  • F - Switch the code format
  • P - Export palette to PDF
  • E - Export palette as CSS file
  • S - Save the palette to your library
  • H - Open the library
  • V - Show or hide the preview
  • + - Increase color count
  • - - Decrease color count
  • Ctrl Z - Undo (add Shift to redo)
  • ? - Show the shortcut list

Shortcuts are ignored while you type in a field or hold Ctrl, Cmd or Alt. You can turn off single-key shortcuts in the shortcut list.

Does this work on mobile devices?

Absolutely! The Color Palette Generator is fully responsive and touch-optimized. All features work on mobile devices, tablets, and desktops. On phones, tap a code to copy it, tap the lock to keep a color, and tap ••• on a color for more formats, contrast details, Regenerate and Edit. The settings button at the top opens mood, harmony, color count, Neighbor contrast, color-blind view and format. The layout automatically adapts to your screen size for the best experience.

Is this tool really free?

Yes, the Color Palette Generator is completely free to use with no registration required. There are no limits on palette generation, exports, or features. The tool is ad-supported to keep it free for everyone while maintaining development and hosting costs.

How are the colors generated?

Hues come from the HSL color wheel: each harmony mode uses mathematical relationships on the wheel to ensure colors work well together. The mood then sets lightness and intensity in OKLCH, a perceptual color space, so every new palette has at least one pair of colors that reads at 4.5:1 or more. The Classic mood keeps the original limits instead (saturation 50-100%, lightness 30-80%). With Neighbor contrast on, the generator may go darker or lighter where it needs to reach the ratio.

Why should I care about WCAG contrast ratios?

WCAG (Web Content Accessibility Guidelines) contrast ratios ensure your designs are readable for everyone, including people with visual impairments, color blindness, or viewing screens in bright sunlight. Meeting AA standards (4.5:1) is required for ADA compliance and recommended for professional web design. AAA standards (7:1) provide even better accessibility for body text and small fonts.

Can I use these colors commercially?

Yes! All generated color palettes are free to use for personal and commercial projects without attribution. The colors themselves cannot be copyrighted, so you own full rights to any palette you create with this tool.

The color theory guide

When to use each harmony, what colors signal in different industries, and how to check a palette for color blindness. About a 12-minute read.

Read the guide

Harmony

Angle is hue. Distance from the center is chroma. A thick ring marks a locked color.

Changing harmony regenerates unlocked colors. Locked colors anchor the new harmony.

Mood

Mood sets how light and how strong the colors are. Harmony sets their hues. Changing mood regenerates unlocked colors.

Neighbor contrast

Checks every pair of side-by-side colors when you generate. The chips on the seams show each pair’s ratio. At 4.5:1 or more, palettes alternate dark and light.

Color-blind view

Shows the swatches as people with each type of color blindness see them. Codes and exports stay the same.

Code format

Sets the codes on the swatches and Copy all. Press F to switch.

Export

CSS variables

    

Colors 1 and 2

Edit color 1

Palette settings

Mood

Harmony

Colors

5

See it on a website, app or poster

Neighbor contrast

Color-blind view

Code format

More actions

Theme

Color theory guide All color tools

Color 1

Library

Stored in this browser only. Export a backup to keep it.

Keyboard shortcuts

Space
Generate a new palette
1–8
Lock or unlock a color
C
Copy all codes
F
Switch code format
E
Download CSS file
P
Download PDF
S
Save to library
H
Open library
V
Show or hide the preview
+ −
More or fewer colors
Ctrl Z
Undo (add Shift to redo)
?
Show this list
Esc
Close a menu or dialog