Skip to content
ToolZone

Random Color

Generate a random color along with its HEX, RGB, and HSL codes, useful for design inspiration or quickly picking a placeholder color.

Runs in your browser. Nothing you enter or upload leaves your device.

Press Space to generate. Lock a color to keep it while the others change.

Keyboard shortcuts

Run the main action
⌘ / Ctrl + Enter
Copy the result
⌘ / Ctrl + Shift + Enter
Download the result
⌘ / Ctrl + S
Paste a file or image into file tools
⌘ / Ctrl + V
Search all tools
⌘ / Ctrl + K
Show these shortcuts
?

You can also drop files anywhere on the page.

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. 1

    Choose a style and how many colors you want.

  2. 2

    Click Generate or press Space for a new palette.

  3. 3

    Click the lock icon on colors you want to keep, then generate again.

  4. 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.

Input
Click Generate
Result
Five codes such as #3FA7C2, #E0592B, #7D3B9E, #B8D04A, #1E2F6B

Values differ each time; regenerate if two colors look too similar.

Limitations
Palettes are random, not designed, so check contrast before using colors for text. Palettes aren't saved between visits; copy the ones you want to keep. Your style and count are kept in the page link.
Assumptions
You want random colors, either from the full sRGB range or from a pastel, vivid or dark style.
Privacy
Colors are generated in your browser, and nothing is sent or saved.

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.

Related tools