Skip to main content
ToolsHub

Random Color Generator

Generate batches of random colors filtered by style — light, dark, vivid, or pastel. Every swatch shows HEX, RGB, and HSL, ready to copy in one click.

Updated

Files never leave your browser
Style
#4F3874
rgb(79, 56, 116)
hsl(263, 35%, 34%)
#85402B
rgb(133, 64, 43)
hsl(14, 51%, 34%)
#417F86
rgb(65, 127, 134)
hsl(186, 35%, 39%)
#96A0A6
rgb(150, 160, 166)
hsl(202, 8%, 62%)
#521E3C
rgb(82, 30, 60)
hsl(325, 46%, 22%)
#51553A
rgb(81, 85, 58)
hsl(69, 18%, 28%)
#D441D9
rgb(212, 65, 217)
hsl(298, 67%, 55%)
#353796
rgb(53, 55, 150)
hsl(239, 47%, 40%)

How to use Random Color Generator

Generate random colors instantly and copy them in HEX, RGB, or HSL. Choose a style filter — Any, Light, Dark, Vivid, or Pastel — to constrain the output to a usable range, then generate a batch of up to 24 swatches at once. Each color is produced in your browser using strong randomness and shown with all three common values, making this a fast way to find color inspiration, seed a palette, or pick an arbitrary test color without ever leaving the page.

  1. Choose a style filter: Any, Light, Dark, Vivid, or Pastel.
  2. Set how many colors you want (1 to 24).
  3. Click Generate to produce a fresh batch.
  4. Review each swatch with its HEX, RGB, and HSL values.
  5. Click the copy button on any color to copy its hex code.

Your data never leaves your device — 100% private processing.

What the style filters actually control

Each filter restricts the HSL saturation and lightness ranges before a color is shown. Light produces high-lightness tints (around 75–95% lightness). Dark produces deep shades (roughly 8–30% lightness). Vivid forces high saturation (75–100%) at mid lightness for punchy colors. Pastel combines high lightness with gentle saturation for soft tints. Any uses the widest range, so results vary the most. Constraining the range is what keeps random colors looking deliberate rather than accidental.

FilterSaturationLightness
LightLow–moderateHigh (75–95%)
DarkModerateLow (8–30%)
VividHigh (75–100%)Mid (45–60%)
PastelGentle (35–65%)High (78–90%)
AnyFull rangeWide (20–80%)

Using random colors responsibly in design

Random colors are great for inspiration but should be treated as a starting point. Once you find a color you like, lock in its hex and build a deliberate palette around it — for example by feeding it into a harmony or palette tool. Always check contrast before using a random color for text, and prefer the constrained filters (pastel, light, dark) when the color will sit behind content, so readability is never left to chance.

Worked examples

Pastel batch

Inputs: Pastel · 8 colors

Result: Eight soft, high-lightness tints suited to backgrounds

Vivid batch

Inputs: Vivid · 6 colors

Result: Six fully saturated, punchy colors for accents

Glossary

HEX
A six-digit hexadecimal color code such as #3B82F6, the standard format for CSS and HTML.
RGB
Red, green, and blue channel values from 0 to 255 that define a color on screen.
HSL
Hue (0–360°), saturation (0–100%), and lightness (0–100%) — an intuitive way to describe colors.
Saturation
The intensity of a color; 0% is grey and 100% is the most vivid version of the hue.
Web Crypto API
A browser API providing cryptographically strong random values, used here for color generation.

Related reading

Free · No spam

Get weekly tool tips & updates

New tools, power-user tips, and productivity hacks — delivered free every Friday.

No spam, ever. Unsubscribe with one click.

Related Color & Design

Explore all Color & Design.