Random Color Generator

Free random color generator: generate one or more random colors instantly and copy them as hex, RGB, or HSL. Optionally lock the hue, saturation, or lightness for themed palettes. Great for design inspiration, data visualization, and testing.

Click generate for random colors.

How random color generator works

This generator creates random colors in the HSL (hue, saturation, lightness) color space, then converts each one to hex and RGB so you can copy whichever format you need. HSL is used for the random draws because it gives pleasing, controllable colors: hue picks the position on the color wheel (0–360 degrees), while saturation and lightness control how vivid and how bright the color is.

Enter how many colors you want (up to 100) and choose the output format (hex, RGB, or HSL). Optionally lock the hue, saturation, or lightness to a fixed value — for example, set the hue to 210 to get only blues, or fix saturation at 100 for fully vivid colors. With nothing locked, every channel is random.

For reproducible results, enter a seed number. The same seed always produces the same colors, which is handy for sharing a palette or repeating a result. The generator runs entirely in your browser, so nothing is uploaded.

Frequently asked questions

Is the random color generator truly random?
It uses a pseudo-random number generator. Without a seed it is non-deterministic (a fresh draw each time); with a seed the output is reproducible. It is great for inspiration and testing but is not a cryptographic random source.
How do I generate only one color family (e.g. only blues)?
Set the hue to a fixed value. Blue is around 210 degrees, so enter 210 in the hue field and leave saturation and lightness random to get a range of blues. Set the hue to 0 for reds, 120 for greens, or 60 for yellows.
What is the difference between hex, RGB, and HSL?
Hex (#1a73e8) and RGB (rgb(26,115,232)) describe the exact same color as red, green, and blue amounts. HSL describes a color by hue (position on the color wheel), saturation (intensity), and lightness (brightness), which is why HSL is easier to control when generating random colors.
Can I generate more than one color at once?
Yes. Set the count up to 100 and the generator returns all colors at once, each with its hex, RGB, and HSL values so you can copy any format.