Random Color Generator

Set how many colors you want (1–20), then press Generate. Each swatch lists HEX, RGB, and HSL so you can drop a fresh accent into CSS, Figma, or a mood board without picking by eye.

Updated 2026-08-06 · Utilities

Click Generate for a random color.

About this tool

Random bytes come from crypto.getRandomValues when available, otherwise Math.random. RGB values convert to a six-digit HEX and to HSL percentages. Unlike a palette tool, colors are independent draws, not hue-stepped from a seed.

How to use

  1. Open the generator: Load the page with the count field and Generate button.
  2. Choose a count: Enter 1 for a single color or up to 20 for a batch.
  3. Generate colors: Click Generate to roll new RGB values and formats.
  4. Copy the formats: Copy HEX, RGB, or HSL from the result into your design tool.

Common use cases

Tips

FAQ

Are colors deterministic?

No. Each click rolls new random RGB values.

Which formats appear?

Every swatch includes HEX, RGB, and HSL lines.

How is this different from a palette generator?

It draws independent random colors, not a related five-color set.

What if count is zero?

The tool rejects counts outside 1–20 with an error.

Related keywords

Related tools