Black Friday: 50% off every paid plan with code BF50. Ends 5 December.

See prices

Free tool

Color palette generator, press Space.

Each press of the space bar makes a new palette. Lock the colours you like and the others change around them, in harmony with your locked colour. Type, pick or choose a shade for any colour, see the palette on a sample page, check every text pair for contrast, and see it as people with colour blindness do. Save palettes in your browser, and export CSS, Tailwind, JSON, PNG, SVG or an Adobe ASE file. Up to 10 colours, no account.

Need a custom tool, app or website? Contact us 

Space new colours Z undo Y redo S save. Click a code to copy it. Paste HEX codes to use them. Drag the dotted handle to move a colour.

Save

Code


        
      

Colours are made in your browser. The palette lives in the page address, and palettes you save stay in this browser. Nothing is uploaded.

Harmonies

Which one to pick.

01 / Analogous

Calm

Neighbouring hues from light to dark. Easy on the eye, good for brands and backgrounds.

02 / Complementary

Contrast

Opposite hues. One for the main colour, the other for buttons and highlights.

03 / One hue

Shades

One colour from dark to light, for interfaces and charts that need steps.

04 / Pastel

Soft

Light, gentle colours for illustrations, slides and social posts.

Guide

How to make a colour palette, and use it well.

A color palette generator gives you a set of colours that look good together, ready to copy into a design, a website or a slide. This one makes a new palette every time you press Space. Lock the colours you like and the rest change around them, in the same harmony as your locked colour. Each colour shows its codes, a name and how readable white or black text is on it.

How to use the color palette generator

  1. Press the space bar, or click New palette, until you see a colour you like.
  2. Click the lock on that colour. Locked colours stay put when you press Space again, and the new colours are built around the first locked one.
  3. Choose a Harmony to steer the other colours, and set how many Colours you want, from 3 to 10.
  4. To use a colour you already have, such as a brand colour, click the pencil on any colour. Type a HEX, RGB or HSL code, use the colour picker, or click one of the Shades and tints. A colour you set by hand is locked for you. You can also paste HEX codes anywhere on the page.
  5. Drag a colour by its dotted handle to move it, or use Move left and Move right. Remove a colour with its cross. Press Z or click Undo to go back, and Y or Redo to go forward again.
  6. Check the palette under On a page and Text contrast, then press S or click Save.
  7. Click a code to copy one colour. Download PNG, SVG and ASE save files, Copy code copies the format you pick, and Copy link copies an address that opens the same palette.

The harmonies, and when to pick each

Each harmony is a rule for how far apart the hues sit and how light and strong the colours are. Choose one based on what the palette is for.

HarmonyWhat you getGood for
MixedA different rule each time: neighbours, opposites, split, three apart, one hue or a free mixExploring when you have no plan yet
AnalogousNeighbouring hues, running from dark to lightBrands, backgrounds, calm layouts
ComplementaryTwo opposite hues, taking turns from dark to lightA main colour plus an accent for buttons
Split complementaryOne hue and the two hues either side of its oppositeContrast that is softer than straight opposites
TriadicThree hues spaced evenly round the colour wheelPlayful designs, kids' content, charts with three groups
One hueOne colour from very dark to very lightInterfaces, charts that show steps, text and background pairs
PastelVery light, soft coloursIllustrations, invitations, social posts
VividStrong colours, spread around the wheelPosters, thumbnails, attention grabbing graphics
EarthyMuted browns, olives and warm yellowsFood, outdoors, craft and natural products

Under the hood the colours are picked in OKLCH, a colour model where the same step in lightness looks like the same step to your eye. That is why a One hue palette climbs evenly from dark to light, and why the shades of a colour step evenly from 50 to 950. When a colour is locked, the harmony is turned so it starts from that colour's hue, which is how a brand colour gets real neighbours or a real opposite.

Reading the contrast numbers

Under each code you see two numbers, one for white text and one for black. They are contrast ratios from the WCAG accessibility guidelines, which run from 1 (no difference at all) to 21 (black on white). A number of 4.5 or higher gets the word OK, because 4.5 is the level WCAG AA asks for with normal sized text. Large text needs 3. The numbers are rounded down, so a pair that shows 4.5 really passes.

Here is a worked example. The grey #767676 has a relative brightness of about 0.181 on a scale from 0 to 1. Its contrast with white is (1 plus 0.05) divided by (0.181 plus 0.05), which is 4.54. Its contrast with black is (0.181 plus 0.05) divided by (0 plus 0.05), which is 4.62. So that grey just passes with both white and black text.

The Text contrast tab checks every pair in the palette. Each row is a background and each column a text colour, with the ratio and a label: AAA from 7, AA from 4.5, Large from 3, and Fail below that.

See it on a page, and as others see it

On a page puts the palette on a sample website: the lightest colour is the background, the darkest the text, and the two strongest the button and the accent. Dark swaps background and text, and Swap the main colours tries another colour on the button.

See it as shows the palette, the sample page and the grid as people with red-blind, green-blind or blue-blind vision, or no colour vision, would see them. It uses the same simulation as the color blindness simulator. If two colours you rely on to tell things apart, like chart lines, look the same in a view, change one of them. Codes and exports always keep the real colours.

Turning five colours into a design

Give each colour a job. A common rule of thumb is 60-30-10: one colour covers most of the space, a second about a third, and a third is kept for accents such as buttons and links. Use the lightest or darkest colour for the background and the one with the highest contrast against it for text.

The export formats

  • CSS variables, HEX gives a :root block with --color-1, --color-2 and so on in the order you see them, each with its colour name as a comment. CSS variables, OKLCH gives the same in oklch(), and SCSS gives $color-1 style variables.
  • Tailwind v4 gives an @theme block with --color-palette-1 and so on, which Tailwind's theme variables turn into classes such as bg-palette-1 (checked 17 Oct 2026). Tailwind v3 gives a palette group for the config file, numbered 100, 200, 300 by position.
  • JSON lists each colour with its HEX, RGB, HSL, OKLCH and name, and HEX list gives the codes separated by commas.
  • Download PNG saves a 1600 by 900 picture with each colour's HEX, name and RGB. SVG saves the same layout with each colour as its own shape.
  • ASE is an Adobe Swatch Exchange file. In Photoshop, choose Import Swatches from the Swatches panel menu; in InDesign, choose Load Swatches (Adobe's help, checked 17 Oct 2026).
  • Copy link copies the page address, which holds the colours and which ones are locked. Open it later, or send it, and the same palette comes back.

Saving palettes

Press S or click Save to keep the palette you see. It appears under Saved, where a click opens it again with its colours locked. They stay in this browser, with no account, and are lost if you clear its site data, so copy the link of any palette you cannot lose. The page also remembers your harmony, colour count, view and code format.

On a Mac

To grab a colour you can see on screen, open Digital Color Meter from the Utilities folder in Applications, read the values under the pointer, then click the pencil on a colour here and type them.

To pull a palette out of a photo instead, use the image color picker. To test a pair at any text size, try the color contrast checker, and for a gradient from your colours, the CSS gradient generator.

Questions

Good to know.

How are the colours chosen?

In OKLCH, a way of describing colour by lightness, strength and hue where equal steps look equally different to the eye. That keeps light and dark steps even and stops yellows and blues from looking much brighter or darker than intended. Colours a screen cannot show are pulled back into range.

Can I start from my brand colour?

Yes. Click the pencil on a colour and type your brand colour's HEX code, or paste the code anywhere on the page. It is locked, and when you press Space the other colours are built in harmony with it.

Can I get a palette from a photo?

Yes, with the image color picker, which finds the main colours in a picture.

What does the contrast number mean?

How readable text is on that colour, from 1 (none) to 21 (black on white). The WCAG guidelines ask for at least 4.5 for normal text and 3 for large text.

How do I save, share or keep a palette?

Press S or click Save, and the palette appears under Saved in this browser. To share it, or keep it on another device, copy the link: the colours are in the page address, locks included.

How many colours should a palette have?

Three to five covers most websites, brands and slides: a background, a text colour, a main colour and one or two accents. Set the Colours menu to the number you need before you start pressing Space.

Can I use these colours for free in my work?

Yes. Colours and their codes are not owned by anyone, and nothing here asks you to credit the tool.

What is the difference between HEX, RGB and HSL?

They are three ways of writing the same colour. HEX is a short code for the web, RGB gives the red, green and blue amounts from 0 to 255, and HSL gives hue, saturation and lightness, which is easier to adjust by hand.

How many colours can a palette have here?

From 3 to 10, with no account and no limit on how many palettes you make or save.

Can I check a palette for colour blindness?

Yes. Pick a view under See it as, such as green-blind, and the palette, the sample page and the contrast grid change to show it that way. If two colours that must look different become alike, change one of them.

Where do the colour names come from?

Each colour gets the nearest name from the list of colour names that web browsers know, such as Steel blue or Tomato, and near-greys are named by how light they are. The name is a guide for talking about the colour; the code is the exact colour.

Why did my locked colour stay when I changed the harmony?

Locks always win. Changing the harmony or the number of colours only replaces the colours without a lock. Click the lock again if you want that colour to change too.

Listed on

Listed on JustMacAppsMotionShine on Mac App IndexMotionShine on ScrollLaunchMotionShine featured on StartupBaseFeatured on FazierFeatured on Twelve ToolsMotionShine - Featured on Smol Launch