Free Color Palette Generator: Create, Lock & Export Palettes Online

Free online color palette generator. Press the spacebar to create colour palettes, lock the colours you like, preview them on a mock page, check contrast and export CSS, Tailwind, JSON, SVG or PNG.

Color Palette Generator by Utiliby

Free Color Palette Generator: Lock, Preview & Export

Press the spacebar to create colour palettes, lock the ones you like, preview them on a mock page, check contrast and export to CSS, SCSS, Tailwind, JSON, SVG or PNG.

Press the spacebar to generate. Lock the colours you like first.

Use Lock to keep a colour, the arrows to reorder, and Edit to fine tune any swatch. The page address updates, so you can bookmark or share this exact palette.

Disclaimer: This free online palette generator creates colours with maths and random choices in your browser, so nothing is uploaded. Palettes are suggestions, not a finished brand identity. Check text contrast, colour-blind readability and how colours look on real screens and in print before using a palette in a product, brand, logo or published design. Colour names are the nearest CSS names and are not trademarked colour systems.

Share, cite or embed this tool

Written by the Utiliby editorial team · Last updated October 15, 2026 · Rules and formulas reviewed October 2026

What this free online color palette generator does

A good colour palette is the quickest way to make a design look deliberate. This free online color palette generator creates sets of two to ten colours in a click, lets you lock the ones you like, and keeps generating around them until the whole set works. You can start from nothing and explore, or start from a brand colour and build a harmonious scheme around it.

It goes further than a strip of swatches. A live preview shows your palette on a mock web page with a navigation bar, headline, buttons and cards. An accessibility matrix reports the WCAG contrast of every text and background pair. And an export panel writes CSS variables, SCSS, a Tailwind config, JSON, SVG, CSV and PNG, with a shareable link that rebuilds your exact palette. Everything runs in your browser.

Generate, lock and export a palette LockedLock Press Space: the other four change CSSSCSSJSONPNG
Lock the colours you like, regenerate the rest, then export the palette in the format your project uses.

How to generate and refine a colour palette

  1. Pick a scheme. Random is best for inspiration. Analogous, complementary and triadic give structure. Pastel, vivid, neon, earthy and dark set a mood.
  2. Set the number of colours. Five is a good starting size.
  3. Press Generate or the spacebar until something catches your eye.
  4. Lock favourites. Locked colours stay put while the rest change.
  5. Refine. Reorder with the arrows or fine tune a swatch with Edit.
  6. Check and export. Review the preview and contrast table, then copy or download the code.

Use Undo and Redo to step through earlier palettes if the best one slipped past. To begin with your own colour, tick Start from my colour and choose a base.

Colour schemes and when to use them

SchemeHow it is builtFeelGood for
AnalogousNeighbouring huesCalm, harmoniousBackgrounds, wellness, nature
MonochromaticOne hue, many lightness levelsClean, elegantMinimal sites, dashboards
ComplementaryOpposite huesHigh energyCalls to action, sports
Split-complementaryA hue and the two beside its oppositeLively, softer than complementaryIllustration, marketing
TriadicThree evenly spaced huesPlayful, balancedChildren’s products, games
TetradicFour hues in two opposite pairsRich, complexData charts, brands with range
PastelHigh lightness, low chromaSoft, friendlyBaby, beauty, stationery
Vivid and neonHigh chromaBold, techyPosters, gaming, accents

If you want to see these relationships on an actual wheel, use the Color Wheel. To fine tune a single colour, use the Color Picker.

How the palettes are generated

Colours are generated in OKLCH, a colour space designed so that equal changes in lightness and chroma look equal to people. That is why generated palettes feel balanced: a vivid yellow and a vivid blue sit at sensible lightness levels instead of one dominating. Hue offsets for each scheme come from the colour wheel, lightness is spread across the palette, and chroma is kept inside a range that suits the mood. Any colour that falls outside the range of ordinary screens is brought back by reducing chroma while keeping hue and lightness, so you always get a real sRGB HEX code.

A seeded random generator makes each press repeatable internally, which is why undo works and why the shareable link can recreate a palette exactly.

From swatches to a working design system

A palette becomes useful when each colour has a job. A practical set of roles is background, surface, text, primary accent and secondary accent. The Live preview tab assigns these automatically, using the lightest colour for the background and the darkest for text, and shows how they combine. If the text colour is too close to the background, the preview switches to black or white so you can still read it, which also hints that the palette needs a stronger dark.

Accessibility and contrast in palettes

A beautiful palette fails if people cannot read it. WCAG 2 requires a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text and interface components. The Accessibility tab lists the ratio for every pair, so you can pick text and background combinations that pass and avoid the ones that do not. As a rule, put your darkest colour on your lightest, and test accent colours before using them for small text.

Also remember that around one in twelve men and one in two hundred women have some colour vision difference. Do not use colour alone to show meaning such as errors or success, and try the Color Blind Test and the Color Contrast Checker for a closer look.

Exporting your palette to CSS, SCSS, Tailwind, JSON and more

FormatWhat you getUse it for
CSS variables--color-1: #0369a1; in :rootAny website or app
SCSSVariables plus a mapSass projects
TailwindA colors block for tailwind.config.jsTailwind CSS sites
JSONHEX, RGB, HSL and name per colourDesign tokens, scripts, apps
SVG and PNGAn image of the swatchesMood boards, slides, sharing
CSVA table of valuesSpreadsheets, documentation

The print button produces a one-page palette sheet with swatches, codes, contrast ratios and the CSS, which is handy for a client or a team.

Using a palette for branding, websites and presentations

For a website, export CSS variables and apply them by role. For a logo or brand, treat the palette as a starting point, then test it in black and white, on dark and light backgrounds and at small sizes. For slides, use the lightest colour for backgrounds and the darkest for text, and keep accent colours for charts. For charts, choose tetradic or vivid palettes so categories are easy to tell apart, and add labels so colour is never the only clue. If the palette will be printed, remember that screen colours may shift and ask your printer for a proof.

Tips for better palettes

For soft, frosted interface panels over your palette colours, try the Glassmorphism CSS Generator, and to extract a palette from a photo use the Image Color Picker.

Limits and responsible use

The generator is a creative aid. It cannot know your brand, audience or culture, and colours carry different meanings in different places. Palettes are made from mathematical rules and chance, so two people can receive similar results. Names are the nearest CSS colour names, not trademarked colour matching systems. Always test contrast and view the colours on real devices before you rely on them.

Frequently asked questions

What is a colour palette generator?

It is a tool that creates sets of colours that work well together. You press a key or button, get a new palette, keep the colours you like and export the codes for your design or website.

How do I generate a colour palette?

Choose a colour scheme, set how many colours you want and press Generate or the spacebar. Each press creates a new palette. Lock any colour to keep it while the others change.

How do I create a palette from one colour?

Tick Start from my colour, enter or pick your base colour and choose a scheme such as analogous, complementary or triadic. The first swatch is your colour and the rest are built around its hue.

What do the colour schemes mean?

Analogous uses neighbouring hues, complementary uses opposites, split-complementary and triadic use three spaced hues, tetradic uses four, and monochromatic uses one hue in different lightness levels. Pastel, vivid, neon, earthy and dark set the mood.

How many colours should a palette have?

Most interfaces work well with five: a light background, a dark text colour, a main colour and two accents. You can create from two to ten colours here.

How do I lock a colour?

Press Lock under the swatch. Locked colours stay in place when you generate again, so you can build a palette one colour at a time.

Can I reorder or edit colours?

Yes. Use the arrows to move a colour and Edit to change it with the native colour picker. The preview, contrast table and exports update at once.

Can I save or share my palette?

The page address changes with each palette, so you can bookmark it or copy the shareable link in the Export tab. You can also download the palette as a file or PNG.

What formats can I export?

CSS variables, SCSS variables and map, a Tailwind config snippet, JSON with HEX, RGB, HSL and names, an SVG image, a CSV table and a plain HEX list, plus a PNG image.

How do I use the palette in CSS?

Copy the CSS export into your stylesheet and use the variables, for example background: var(--color-1). Rename the variables to match their role, such as --brand or --text.

How does the live preview work?

The tool assigns roles by lightness and vividness: the lightest colour becomes the background, the darkest the text and the most colourful ones the accents. It then shows a sample page so you can judge the palette in use.

How do I check if my palette is accessible?

Open the Accessibility tab. It shows the WCAG contrast ratio for every text and background pair and marks AAA, AA, large-text-only or fail. Choose pairs that reach at least 4.5 to 1 for body text.

Are the colours really random?

They are produced from a seeded random generator using perceptual OKLCH colour maths, which keeps lightness and vividness in a pleasing range. Every press uses a new seed.

Why do some colours look similar?

Random mode picks independently, so two colours can land close together. Use a scheme such as complementary or analogous for more control, or lock the good ones and regenerate.

Can I use these palettes commercially?

Colours themselves cannot be owned, and you can use the generated codes freely. A palette is a starting point, so check that your final brand colours are distinctive and clear of conflicts.

Does it work on a phone?

Yes. On narrow screens the palette stacks into rows. There is no spacebar on most phones, so use the Generate button.

Is this palette generator free and private?

Yes. It is free online with no sign-up, nothing is uploaded and there is no limit on palettes.

Sources and further reading

Sources were consulted in October 2026. Standards and rules can change, so always check the official page for your situation.

Disclaimer: This free online palette generator creates colours with maths and random choices in your browser, so nothing is uploaded. Palettes are suggestions, not a finished brand identity. Check text contrast, colour-blind readability and how colours look on real screens and in print before using a palette in a product, brand, logo or published design. Colour names are the nearest CSS names and are not trademarked colour systems.