Random Color Generator

Generate one or several random colors in hex, RGB or HSL format.

What a random color generator is for

Generating random colors is useful for brainstorming palettes, testing interface contrast, creating sample data (placeholders) in prototypes, or simply finding inspiration when you don't know where to start on a design project.

Available formats

FormatExampleCommon use
Hexadecimal#2C65F2CSS, design tools, the most compact form
RGBrgb(44, 101, 242)When individual channels need adjusting
HSLhsl(226, 87%, 56%)More intuitive for adjusting hue and lightness

Tip

Generate several colors at once (up to 10) to compare options side by side before picking the one that best fits your project.

Frequently asked questions

How many colors can I generate at once?

Between 1 and 10 colors per generation.

Are the colors truly random?

Yes, each color channel (red, green, blue) is randomly picked within the range 0 to 255.

Can I copy the code for each color?

Yes, the code in the chosen format (hex, RGB or HSL) is shown alongside each generated color swatch.

What is the HSL format used for?

HSL makes intuitive adjustments of hue, saturation and lightness easier, which is helpful if you are learning color theory.