Random Color Generator

A random color generator picks a color by chance — every one of the 16,777,216 possible hex colors is equally likely. Use it to break a creative block or to find a starting color.

Generate a random color or a random 5-color palette in one click. Lock swatches, filter pastel, vivid, or dark, and copy any hex code.

#8B5CF6

Random palette

History

How random colors work

A hex color is three numbers — red, green, and blue, each from 0 to 255. A random color generator picks all three at random, which gives 256 × 256 × 256 = 16,777,216 possible colors. The filters on this page narrow that down: pastel means high lightness and medium saturation, vivid means high saturation and medium lightness, and dark means low lightness.

Random colors are a good starting point when you are stuck. If the first color is not right, generate another — and when one feels close, open it in the color picker to fine-tune it, or lock it in the palette generator and build around it.

Frequently asked questions

What is a random color generator?

A random color generator picks a color by chance from all 16,777,216 possible hex colors, and shows its hex, RGB, and HSL codes so you can copy and use it.

Can I get a random pastel color?

Yes — choose “Pastel” in the filter above. Pastel colors have high lightness and soft saturation, so they are light and gentle.

Is the random color really random?

It uses your browser's built-in random number generator, which is random enough for design work. It is not suitable for cryptography or gambling.

Related tools

Palette Generator · Color Picker · Gradient Generator · Color Wheel