AZ Tools

Random Color Generator

Random

Spin up a fresh set of random colors whenever you need a starting point, a placeholder, or some inspiration. Choose how many colors to generate (up to 48) and whether to show each as a HEX code, an rgb() value or an hsl() value — switch formats anytime without losing the current colors. Each swatch has a one-click copy button. Colors are drawn from a cryptographically strong random source, so they're evenly spread across the whole spectrum. Everything runs locally in your browser — nothing is generated on or sent to a server.

How to use

  1. Set how many colors you want and choose a format (HEX, RGB or HSL).
  2. Click Generate for a new set — or change the count to reshuffle automatically.
  3. Copy any color with the button on its swatch.

Frequently asked questions

Can I switch between HEX, RGB and HSL?
Yes. Changing the format re-displays the same colors in the new notation, so you can grab whichever your project needs without regenerating.
Are the colors truly random?
They come from the browser's cryptographically secure random generator (crypto.getRandomValues), spread evenly across all RGB values — not weighted toward any hue.
How do I get a whole new set?
Click Generate, or change the count. The current set is kept until you do, so you won't lose a color you liked by accident.
Do you store or upload the colors?
No. Generation happens entirely in your browser; nothing is sent anywhere. Your last set is saved only in your own browser for convenience.

Related tools