Random color generator

Press the button or the space bar for a random color, with its name and hex, RGB, HSL, OKLCH and CMYK values. Narrow it down by hue or mood, and jump back to any recent color.

Generate a random color

  1. Press "New random color" or the space bar to generate a color.

How the random colors are made

Instead of picking three random RGB numbers, which gives a lot of muddy colors, the generator picks a random hue, lightness and chroma in OKLCH, a perceptual color space, then converts the result to sRGB. The mood filters set the lightness and chroma ranges: pastel is light and soft, bright is vivid, muted is grayed and dark is deep.

Every color is named after the closest named color, so a random #7FB3D5 is described as the nearest familiar name rather than just a code.

What to use a random color for

  • Breaking a creative block: start a design, illustration or brand exploration from a color you would not have chosen.
  • Placeholder and test data: give charts, avatars or tags distinct colors.
  • Games and classroom activities: draw a color and name, mix or match it.
  • Palettes: for five colors that work together, use the palette generator, which randomizes whole harmonious palettes.

Random color challenges

  1. Draw a random color and design a poster, logo or room around it.
  2. Draw three random colors and find a way to make them work together, adjusting only lightness.
  3. Use a random color as an accent on an otherwise neutral layout.
  4. Name the color before you look at its name, then compare.
  5. Try to mix it with paint: the color mixing chart shows what common paints make.

Random palettes and more

Found a color you like? Open its page for shades, matching colors and contrast, find colors that go with it, or look up its meaning.

Frequently asked questions

How do I generate a random color?

Press "New random color" or the space bar. Use the hue and mood buttons to limit the range.

How do I get a random hex code?

Every random color shows its hex code; click it to copy. The generator also shows RGB, HSL, OKLCH and CMYK.

Can I generate a random color palette?

Yes. The palette generator creates random palettes of harmonious colors; press the space bar there too.

Are the colors truly random?

They use the browser’s random number generator within the hue and mood ranges you choose, in a perceptual color space so results are evenly spread to the eye.