Color palette generator: balanced, accessible, free

Untitled palette —

Keyboard shortcuts

Space
New palette (unlocked colours change)
L
Lock or unlock the colour under the pointer or in focus
C
Copy that colour’s HEX code
← →
Move focus between colours (↑ ↓ on a phone layout)
Alt + ← →
Move the focused colour left or right
Enter
Edit the focused colour
Delete
Remove the focused colour
Ctrl/⌘ + Z
Undo
Ctrl/⌘ + Shift + Z
Redo
?
This list
✓ Applied

How useful was the Color Palette Generator?

5.0 out of 5 · 1 rating

Write a review on Trustpilot

About this tool

Make a colour palette that works in real designs

Press Space for a new palette, lock the colours you want to keep and keep going until it feels right. Then check it for contrast, try it on a website, dashboard and app, and export it straight into your CSS, Tailwind config or design tool.

Palettes are built in OKLCH, a colour space designed so that equal steps look equal to the eye. In HSL, a yellow and a blue at “50% lightness” look nothing alike; in OKLCH they do, so generated palettes have balanced lightness and the shade scales stay even from 50 to 950. Everything runs in your browser: no account, no Pro tier, and photos you load never leave your device.

  • Free, no sign-up
  • Nothing uploaded
  • No watermark

Harmonies that hold together

Thirteen modes, from analogous and triadic to pastel, earthy and dark UI, all worked out in OKLCH. Locked colours stay put and the new ones are chosen to sit well beside them.

Accessible by design

See WCAG 2 ratios and APCA values for every pair, fix a failing pair in one click, and check how the palette looks with each common type of colour-vision deficiency.

Ready for your code and tools

Copy CSS variables, SCSS, Tailwind v3 or v4 with full 50–950 scales, W3C design tokens or Figma variables, or download ASE, GPL, Procreate, SVG and PNG files.

Step by step

How to make a colour palette

  1. Generate

    Press Space or Generate. Pick a harmony mode, set how many colours you want, or start from a base colour or a photo.

  2. Refine

    Lock the colours you like and generate again. Click a colour to edit it, pick a shade, or fix its contrast; drag to reorder.

  3. Check and export

    Try the palette on the mock-ups, check the contrast matrix and colour-vision views, then export it or copy a share link.

Get the most out of it

Tips for the best results

  • Keep a neutralMost interfaces need a near-white, a near-black and one or two accents. Lock a dark and a light colour, then generate the accents around them.
  • Text needs 4.5:1WCAG AA asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text. Check the matrix before you commit to a text colour.
  • Don’t rely on colour aloneAbout 1 in 12 men and 1 in 200 women have some colour-vision deficiency. If two colours merge in the simulation, add a label, icon or pattern too.
  • Use the scalesEach colour’s 50–950 scale gives you hover states, borders and backgrounds that match. Export them to Tailwind or CSS in one go.

Questions

Common questions

Everything here runs in your browser, so the answer to “where does my file go?” is always: nowhere. More in the general FAQ.

Is this colour palette generator free?

Yes, completely. Every feature, including all exports, the contrast tools, the photo picker and the library, is free, with no sign-up, no Pro tier and no limit on palettes.

Why does it use OKLCH instead of HSL?

HSL is a simple reshaping of RGB, so colours with the same HSL lightness can look very different: pure yellow looks far lighter than pure blue. OKLCH is built on OKLab, a perceptual colour space, so the same lightness looks about equally light for every hue. That gives more even palettes, smoother gradients and shade scales whose steps look evenly spaced. Colours outside what a screen can show are brought into the sRGB range by reducing chroma while keeping lightness and hue.

What do WCAG AA and AAA mean?

They are contrast levels in the Web Content Accessibility Guidelines. AA needs a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (about 24 px, or 19 px bold). AAA needs 7:1 and 4.5:1. Black on white is 21:1; #777777 on white is about 4.48:1, just under AA.

What is APCA?

The Accessible Perceptual Contrast Algorithm is a newer contrast model developed for future accessibility guidelines. It gives a lightness contrast value (Lc) that accounts for text polarity, so dark text on light and light text on dark are scored differently. As a rough guide, Lc 75 suits body text, Lc 60 larger text and Lc 45 headings. It is not yet a legal requirement; WCAG 2 is still the standard to meet.

How does the colour-blindness simulation work?

It uses the Machado, Oliveira and Fernandes (2009) model for protanopia, deuteranopia and tritanopia and their milder anomalous forms, applied in linear RGB, plus a greyscale view for achromatopsia. The tool also warns when two colours in the palette become hard to tell apart for a type. Simulations are approximations, and vision varies from person to person.

Can I make a palette from a photo?

Yes. Open the Photo view and drop, paste or choose an image. The tool finds its main colours with k-means clustering in OKLab and marks them on the photo; drag any marker to pick a different colour, then use them as your palette. The image is processed on your device and never uploaded.

Which export formats are there?

A HEX list, CSS custom properties (HEX, RGB or OKLCH), SCSS variables, a Tailwind v3 config and Tailwind v4 @theme block with 50–950 scales, W3C design tokens (DTCG JSON), Figma variables JSON, SVG, a PNG palette card, Adobe ASE swatches, a GIMP and Inkscape .gpl palette and a Procreate .swatches file.

How do I share a palette?

Click Share to copy a link. The colours are stored in the link itself, after the # sign, so opening it shows the same palette without anything being saved on a server.

Where are my saved palettes kept?

In your browser’s local storage, on this device only. Export the library as a JSON file to back it up or move it to another browser, and import it there. Clearing your browser data deletes saved palettes.

Can I use these colours for a favicon or logo?

Of course. Copy the HEX codes into your design tool, or use them with the favicon generator and the QR code generator to keep your brand colours consistent.

Where do the colour names come from?

Each colour is named after the nearest match in a list of about 1,500 names from the open-source color-names project by David Aerne (MIT licence), plus the basic colour words. The name is a friendly label: the HEX code is what defines the colour.