Random Color Generator
Generate a set of random colors, a handy starting point for palettes.
What is Random Color Generator
A random color generator creates several colors from random hue, saturation and lightness values, useful for brainstorming design palettes.
🔒 Everything runs in your browser. Nothing is uploaded.
What this tool actually does with your file
- Where it runs
- In your browser, on this page
- Upload
- None — the file never leaves your device
- Offline
- Works with the network disconnected
Uniform in RGB is not uniform to the eye
Picking three random bytes gives every RGB triple equal probability, which means most results are mid-tone and desaturated: the space of colours that look distinctly different is a small part of the cube. A run of a hundred random colours feels repetitive long before it runs out of unique values.
The visual consequence is worth knowing when generating placeholder palettes for a chart — random colours will collide in perceived lightness, and two series will be indistinguishable in greyscale print or to a colour-blind reader.
What a usable random palette needs
A minimum perceptual distance between colours, and a controlled lightness range so text stays readable on top. Generating in HSL with a fixed saturation and lightness band, walking hue by golden-angle increments, gives a set that is both varied and legible — which is what the palette tool does deliberately rather than sampling the cube.
Contrast is the constraint that matters most in practice: a colour that looks fine as a swatch can fail WCAG AA as a background behind text. Check the contrast ratio against the actual foreground rather than judging by eye.
Where the randomness comes from
Colours are generated with the platform's CSPRNG where available. That is more than a decoration needs, but it costs nothing and avoids the temptation to reuse a weak generator for something that does need strength.
Nothing is stored and nothing is sent, so refreshing gives a fresh set. If a specific colour must be reproduced later, copy its hex value — there is no seed to re-enter, and the same seed would have to be threaded through the page to make it reproducible.
How to use it
- 1.Set how many
- 2.Click Run
- 3.Copy the colors you like
How Random Color Generator works under the hood
Generators here produce values locally with the browser's cryptographic random source. The output is generated on your device, not issued by a server, so there is no record of what was generated.
- 1
Seed from the platform CSPRNG
Values come from crypto.getRandomValues, not Math.random, so they are suitable for passwords and tokens.
- 2
Map to the requested alphabet
Random bytes are mapped to the chosen character set while rejecting values that would bias the distribution.
- 3
Render on the page
The result is shown and can be copied; it is not stored or sent.
Processing pipeline
Strength comes from length and source
A 20-character password from a 90-symbol alphabet has far more entropy than a 12-character one, and both are only as good as the random source. This site uses the platform CSPRNG, so the remaining risk is reuse, not generation.
Nothing is logged
Generated values are never transmitted, so there is no server log, no history and no recovery. Save what you need before closing the tab.
Verify it yourself
Generation is local. Reload the page and the values are gone.
- 1.Open DevTools on this page and switch to the Network tab
- 2.Keep the filter on Fetch/XHR and run the tool
- 3.Confirm no request carries your file — you should see only page assets and fonts
Frequently asked questions
Can colors repeat?
Since values are random, similar colors can occasionally appear. Increase the count to explore more.
More in Generators
On this page
- What is Random Color Generator
- What this tool actually does with your file
- How it actually behaves
- How to use it
- How it works inside
- Frequently asked questions
Excel formula reference
29 functions with syntax, arguments and a table you can retype.
Browse the list →