About the Random Color
Random Color generates a palette of random colors, from 3 to 10 at a time, in any color or in pastel, vivid or dark styles. Lock the colors you like and press Space to reroll the rest, then copy single HEX codes or the whole palette.
How it works
In Any mode, the red, green and blue levels are each picked at random from 0 to 255 using the browser's Web Crypto API, so all 16,777,216 colors from #000000 to #FFFFFF are possible. Pastel, Vivid and Dark modes instead pick a random hue and keep saturation and lightness within a range that gives that style.
The first two digits of each code set the red level, the middle two the green and the last two the blue. In Any mode most results are fairly saturated mid-tones; pure grays, very pale pastels and very dark shades come up less often simply because there are fewer of them in the RGB cube.
How to use
- 1
Choose a style and how many colors you want.
- 2
Click Generate or press Space for a new palette.
- 3
Click the lock icon on colors you want to keep, then generate again.
- 4
Copy a single HEX code, or click Copy palette for all of them.
Worked examples
Chart series colors
A developer needs quick distinct colors for a five-line test chart.
Values differ each time; regenerate if two colors look too similar.
Frequently asked questions
Can I restrict the random color to a range, like pastels?+
Yes. Choose Pastel, Vivid or Dark above the palette. Any keeps the full RGB range.
Is this useful for picking a random accent color for a design?+
Yes. It's a quick way to get inspiration or a placeholder color when you don't have a specific one in mind.
How many possible colors are there?+
16,777,216, which is every six-digit HEX code from #000000 to #FFFFFF.
Can I get more than five colors?+
Yes. Choose 3, 5, 8 or 10 colors per palette.
Can I get the RGB values instead of HEX?+
Yes. Click a color to see its RGB, HSL and CMYK values in the details panel below the palette.