Random Color Generator
Random hex colors with instant swatches.
Generate random colors as hex and RGB codes with a live swatch preview. Draw one color or a small palette at once — handy for design mockups, art prompts, or picking a random theme.
Set. Choose how many colors to generate.
Click Generate a color to see a result.
Options
Recent results
- No history yet.
How it works
- Set. Choose how many colors to generate.
- Generate. Click "Generate a color" to see the swatch(es) and codes.
- Copy. Use the copy button to copy the hex code(s).
Frequently asked questions
What format are the colors in?
Each color shows as a hex code (#RRGGBB) and its RGB values, with a swatch you can click to copy.
Can I generate a palette instead of one color?
Yes. Set the count to generate several colors at once, shown as a row of swatches.
Are the colors truly random, or from a preset palette?
Fully random RGB values via crypto.getRandomValues — not drawn from a fixed preset list.
Related randomizers
Further reading
- Generating a set of distinct colors for tags, teams, and charts
Not every use of a random color is about art. When you need a handful of clearly different colors to label tags, teams, or chart series, a random palette gives you a fast starting set — here's how to draw one and clean it up.
- Building a quick color palette when you don't have a designer yet
Before a brand kit exists, a project still needs colors — for a slide deck, a spreadsheet, a prototype, a label system. Generating a batch of random hex codes gives you a real, unbiased starting palette in seconds.
- Using a random color generator to break a creative rut
Staring at a blank canvas is easier when someone else picks the first color. How random RGB draws force a constraint you didn't choose, and how to pair them with drawing and photo prompts for a full creative warmup.