Random Color Generator

Random colours and five-swatch palettes with locking โ€” hex, RGB, HSL.

About this generator

Five random swatches at a time; click any to copy its hex (with RGB and HSL shown below), and padlock the ones you like before re-rolling the rest โ€” the classic way to stumble into a palette that works. Space re-rolls from the keyboard.

Random, but designable

Truly uniform random RGB mostly produces mud and neon, so this generator draws in HSL instead: any hue, but saturation and lightness confined to the usable band (35โ€“95% and 25โ€“80%). The result is colours a design could actually wear. The lock-and-reroll workflow has a quiet logic to it โ€” good palettes usually hang off one or two anchor colours, and locking an anchor while shuffling companions explores its neighbourhood fast. When a palette clicks, take it to the colour converter for contrast-checking text pairs, or start from a photo instead with the palette extractor. How hex codes work explains what you're copying.

Frequently asked questions

How do I keep one colour and change the others?

Click the padlock on any swatch before re-rolling โ€” locked colours survive every roll until you unlock them. Lock your anchor, shuffle its companions.

Why do the random colours look better than true random?

They're drawn in HSL with saturation and lightness limited to the usable range โ€” uniform random RGB produces mostly murky browns and blinding neons, which no design wants.

Can I get the RGB or HSL values?

Click a swatch โ€” the line under the palette shows all three forms (hex, rgb(), hsl()) while the hex lands on your clipboard.

How many palettes until I find a good one?

With locking, usually under a minute: roll until one swatch sings, lock it, and re-roll the rest a few times. Anchoring beats hoping all five land at once.