Random Color Palette Generator

Spin up five random hex colours and copy the ones you like.

HEX code copied to clipboard!

Press Generate New Palette and the tool fills the strip with five random colours, each shown with its six-digit hex code. Click any swatch to copy that single hex to your clipboard, or use Copy All HEX to grab the whole set as a comma-separated list. It is a fast way to break a blank-page stare and find a colour you would not have reached for on purpose. Everything is generated in your browser, and nothing is saved once you leave the page.

Five swatches, drawn at random

Each generation replaces all five swatches at once — there is no lock to hold one colour while re-rolling the rest, so if you find a keeper, copy it before pressing generate again. The colours are picked uniformly from the full 24-bit RGB space, which is roughly 16.7 million possibilities, so any hex from #000000 to #FFFFFF can turn up. Codes are shown in uppercase, the form most design tools and CSS style guides expect.

Copying colours

A single click on a swatch copies just that colour's hex and pops a small confirmation. Copy All HEX copies the five current codes joined with commas, ready to paste into a CSS variable list, a design brief, or a spreadsheet. The label on each swatch switches between dark and white text automatically based on the colour's brightness, so the hex stays readable whether the swatch is pale or nearly black — a small touch that saves squinting at a code printed white-on-yellow.

Random, not a harmony scheme

This is a true random generator, not a colour-theory engine: the five colours are drawn independently, so they are not arranged as complementary, analogous or triadic relationships around a base hue. That means some sets will clash and others will click by luck — which is exactly the point when you want a jolt of inspiration rather than a formula. Regenerate until a combination catches your eye, then pull the individual hex codes you want into a proper palette elsewhere.

Frequently Asked Questions

How many colours does each palette have?

Five. They are all regenerated together every time you press Generate New Palette; there is no option to lock one and re-roll the others.

Are the colours based on a harmony rule like complementary or analogous?

No. Each swatch is an independent, uniformly random six-digit hex from across the full ~16.7 million RGB colours, so the set does not follow any colour-scheme relationship.

How do I copy just one colour?

Click its swatch and a toast confirms the hex was copied. To copy the whole set at once, use Copy All HEX, which puts the five codes on the clipboard separated by commas.

Why is the text on some swatches dark and on others white?

The label colour is chosen from each swatch's perceived brightness, so dark colours get white text and light colours get dark text. It only affects legibility of the code, not the colour itself.