My Color Palette Generator

Random Color Generator

A random color generator picks a color at random and shows its HEX and RGB codes. This one creates a single random color or a 5-color palette with each click, and you can lock colors you like and keep rolling the rest. It favors vibrant hues, and a 'Any color' mode samples the full 16.7 million HEX range.

Press Space to generate · click 🔓 to lock a color · click a code to copy HEX, RGB, HSL, CSS or Tailwind

Last updated:

Vibrant vs any color

Vibrant (the default) picks a random hue with high saturation and mid lightness, so every roll is bright and usable for accents, charts and moodboards. Any color picks a uniformly random 24-bit value, so you will also see greys, near-blacks and muddy tones, which is what you want for games, tests or truly random sampling.

Need softer colors? Try the pastel color palette generator. Want a palette built around one color? Lock it here or open the color palette generator.

Frequently asked questions

How does the random color generator pick colors?

In the default Vibrant mode it picks a random hue (0–360°) with high saturation (62–92%) and mid lightness (42–68%), then converts it to HEX. In Any color mode every one of the 16,777,216 HEX values from #000000 to #FFFFFF is equally likely.

Can I get just one random color?

Yes. Switch the toggle to 1 color to see a single large random color with its HEX, RGB and HSL codes. Switch back to 5 colors for a palette. Press Generate or the space bar for a new roll.

Can I keep a color I like?

Yes. Click the lock icon on a swatch and it stays while the others change on the next roll. The last result and your locks are saved in this browser.

Related tools

Use these colors in a full palette →