RANDOM COLOR GENERATOR

Generate random colors with HEX, RGB, and HSL values. Nothing leaves your browser.

In short

Generate a grid of random colors with their HEX, RGB, and HSL values, and click any value to copy it. Pick how many colors to generate at once. Runs entirely in your browser.

How to generate random colors

  1. 1

    Set how many random colors you want (up to 24).

  2. 2

    Click Generate to get a fresh grid of colors.

  3. 3

    Click any HEX, RGB, or HSL value under a swatch to copy it.

Questions

How random are the colors?
Each swatch picks a random red, green, and blue value from 0–255 using JavaScript's Math.random(), giving an even spread across the full 16.7-million-color RGB space — it's not restricted to a curated or "pretty" palette.
What's the difference between HEX, RGB, and HSL here?
They're the same color in three notations: HEX is the six-digit code used in CSS and design tools, RGB gives the red/green/blue channel values from 0–255, and HSL expresses the color as hue, saturation, and lightness — useful when you want to tweak brightness without changing the hue.
Can I generate a color palette instead of individual colors?
For colors that are designed to work together (complementary, analogous, etc.), use the Color Palette Generator — this tool is for pure random colors, useful for placeholder data, testing, or inspiration.
Is anything sent to a server?
No. Colors are generated and copied entirely in your browser — nothing is transmitted or stored.

Related tools

All Color & CSS Tools →

Updated