Random Color Generator
One click gives you a colour you would never have picked, with the hex, RGB and HSL codes ready to copy — plus the name of the closest colour in this archive.
Click, or press the space bar
Nothing is sent to a server: every colour is calculated in your browser.
Pure chance, calculated on your device
The hue, saturation and lightness are chosen by your browser, then converted to hex, RGB and HSL. Nothing is sent to a server and nothing is saved, so you can generate as many colours as you like.
What a random color generator actually does
A random colour is a colour chosen by chance rather than by taste. That sounds trivial, but it changes how you work. When you pick a colour yourself you repeat your habits: the same dusty blue, the same safe charcoal, the same accent you used on the last project. A generator hands you the colours you would never have reached for, and a few of them are wrong in useful ways.
Every colour on this page is calculated in your browser. There is no server call, no curated list of approved swatches and nothing saved. The generator picks a hue between 0 and 360 degrees, a saturation between roughly 30 and 90 percent and a lightness between 30 and 72 percent, then converts that to RGB and hex. The five filter buttons narrow the range: Warm keeps the hue in reds, oranges and yellows, Cool keeps it in greens, blues and violets, Dark pulls lightness down to the 8 to 28 percent band, and Pale pushes it up to 76 to 91 percent with low saturation.
Why you would want to be handed a colour
Three kinds of people use a generator, and they want different things from it.
Designers and illustrators use one to break a palette rut. You have a layout that needs an accent and everything you try is a version of what you already used last month. Generating twenty colours and keeping the one that looks wrong but interesting is faster than staring at a colour wheel, and it gets you somewhere your taste would not have taken you.
Developers use one for placeholder data. Charts, tags, avatars, labels, test fixtures: you need a colour that is visually distinct from the one before it, and you do not care what it is. A hex code you can copy in one click beats opening a design file to sample something.
People writing image prompts use colour names and codes to pin down a mood. If you want a 1970s institutional interior, “a muddy olive with a brown cast” is easier to prompt with when you have an actual code to compare against.
How to read the three codes
Hex, RGB and HSL describe the same colour three ways, and it helps to know which one to reach for.
A hex code is six hexadecimal digits in pairs: red, green and blue. #43B3AE is 43 red, B3 green and AE blue. It is the shortest form, it works everywhere, and it is what you paste into a stylesheet or a design tool.
RGB is the same three numbers in decimal, from 0 to 255. You want this form when you are writing JavaScript, canvas code or an inline style where you need to vary one channel at a time.
HSL is the useful one when you are editing rather than copying. Hue is an angle on the colour wheel, saturation is how much colour there is, lightness is how close to black or white. If you want a quieter version of the colour you just generated, drop the saturation by fifteen points. In hex that is guesswork; in HSL it is arithmetic.
The trap with random colours
Random gives you variety, not harmony. Two colours picked at random are usually a bad pair, and five picked at random are almost always a bad palette. The five-colour button on this page does not pick five independent colours: it starts from one random base and shifts the hue and lightness in small steps, which is why the result reads as a set rather than as five unrelated swatches.
Even so, treat a generated palette as raw material. Pick one colour as the surface, one as the text and one as the accent, then check the contrast before you commit. A random colour has no obligation to be readable, and roughly half of the colours this page produces are too light for white text.
How this differs from a colour wheel
A wheel is a physical idea: a disc with a handful of printed slices and a pointer. It is fun and it is memorable, but it can only land on the slices someone printed. This page reaches the full range, filters it by warmth or lightness, and tells you which colour in a hundred-and-twenty-name archive your result is closest to. That last part is the reason to use this page rather than a spinner: you get a colour and a word for it.
If you want the word first and the colour second, the full list of unusual color names is the other way round. If you already know the family you want, start with names for blue colors or shades of green names.
Questions people ask about random colors
What is a random color generator?
A tool that picks a colour for you instead of letting you choose one. It selects a hue, a saturation and a lightness within a fixed range, converts the result to hex, RGB and HSL, and shows you the codes so you can paste them into a design tool, a stylesheet or a document.
Can I copy the hex code straight away?
Yes. Click the HEX row under the swatch and the code goes to your clipboard. The RGB and HSL rows work the same way, and the five-colour palette swatches each copy their own hex.
What is the difference between hex, RGB and HSL?
Hex and RGB describe the same thing in different notation: a mix of red, green and blue, from 00 to FF in hex or 0 to 255 in RGB. HSL describes the same colour as a hue angle, a saturation percentage and a lightness percentage, which is easier to reason about when you want to lighten or desaturate a colour you already have.
Is there a random color generator wheel?
A wheel is a different interaction: you spin a disc and the pointer lands on a slice. This page uses a button instead, because it can reach any of roughly 16 million colours rather than the dozen or so printed on a wheel, and it also lets you restrict the range to warm, cool, dark or pale.
Can I limit it to warm or cool colors?
Yes. The five buttons under the generator restrict the hue or lightness range: Warm stays in reds, oranges and yellows, Cool stays in greens, blues and violets, Dark pulls lightness down and Pale pushes it up with low saturation. Any returns to the full range.
Why does the closest named color sometimes look off?
The names in this archive are historical pigment and dye words, and several of them describe colours no single modern hex code can capture — verdigris varies by roof, puce varies by flea. The nearest-name match compares your random colour against the hex values published on the main list and returns the closest one; treat it as a starting point, not an exact equivalence.
Do you store the colors I generate?
No. The colour is generated in your browser with JavaScript, and no request is made when you click. The only thing stored locally is a cached copy of the colour names used for the nearest-name match, so the page does not have to fetch the list on every visit.
Can I use the colors in a commercial project?
Yes. A colour is not copyrightable, and the codes on this page are generated by a formula rather than copied from a palette. Check contrast before you put text on a colour, though — a random colour has no obligation to be readable.
More colour names for the colour you just made
Every colour on this site has a name, a hex code and a story behind it. If the random colour you generated looks like something — a mineral, a food, a dye — start with the full list of unusual color names, which covers a hundred and twenty names with hex codes and pronunciations. Two families get their own pages: names for blue colors and shades of green names.