Tool · Random color

Random color generator.

Press space for a random color with its HEX, RGB, HSL and name. Constrain it to pastels, darks or a hue range, generate a batch, and keep the history.

Random color
#1B4DE4
Sapphire
rgb(27, 77, 228) · hsl(225, 79%, 50%) · CMYK 88%, 66%, 0%, 11%
Style
Hue range (degrees)
to
0 red, 60 yellow, 120 green, 180 cyan, 240 blue, 300 magenta
How many
Colors are sampled in OKLCH rather than raw RGB, so results spread evenly across visible hues and stay usable. Every color links to the converter and the palette generator.

What is the random color generator?

A random color generator produces a color at the press of a button with its HEX, RGB, HSL and name, for placeholders, inspiration, testing and games. This one can constrain the result by hue, lightness or saturation and keeps a history of every color generated.

Random, but useful

Fully random RGB gives a lot of mud. The generator samples in OKLCH so results are evenly spread across visible hues and stay pleasant, and you can restrict it: only pastels, only dark colors, only within a hue range, or only colors that pass AA contrast on white. Each result shows its nearest named color and a link to its full record. Generate one at a time or a batch of up to 20, and copy the history as a list.

Random Color Generator FAQ

How do I get a random HEX color?

Press Generate. The HEX is shown large with a copy button, and the spacebar generates again.

Can I generate a random color within a range?

Yes. Set hue, saturation and lightness limits, or pick a preset like pastel, vivid, dark or neutral.

Can I generate a random palette instead of one color?

Yes. Set the batch size to five and open the result in the palette generator, or use the generator directly.

Related color tools