Random Color Generator
Free online random color generator. Generate random HEX color codes with live preview swatches — click any swatch to copy its code. Great for design inspiration and palettes.
How many colors can a random generator produce?
Web colors live in 24-bit RGB space: 256 levels each of red, green and blue, giving 16,777,216 distinct colors. This generator draws three cryptographically random bytes per color, so every one of those ~16.7 million values is equally likely.
Random palettes are a genuine design technique: generating batches and keeping the accidents you like sidesteps habitual color choices. Click any swatch to copy its HEX code straight into CSS or Figma.
How to use
- 01Choose how many colors to generate.
- 02Click Generate colors to create random HEX swatches.
- 03Click any swatch to copy its HEX code.
- 04Use Copy all HEX to grab the whole palette.
Frequently asked questions
- How are the colors generated?
- Three cryptographically random bytes become the red, green and blue channels, so every one of the ~16.7 million RGB colors is equally likely.
- Can I copy a single color from the palette?
- Yes — click any swatch to copy its HEX code, or use Copy all HEX to copy the entire palette as a list.
- Can I use these colors in CSS directly?
- Yes. The HEX codes (like #4ade80) are valid CSS color values and also work in design tools like Figma.