Random Color Palette

Five harmonious colors in one click — a starting point for your next design, brand, or slide deck.

Click any swatch to copy its HEX code.

How it works

Random colors straight off the RGB cube usually clash, so this tool works in HSL color space instead: it picks one random base hue, then builds the palette from color-theory relationships — nearby analogous hues plus a complementary opposite — with rich saturation and balanced lightness. That is why the five swatches feel like they belong together even though the starting point was random. Clicking a swatch copies its HEX code (the #rrggbb format CSS and design tools expect) straight to your clipboard. If a palette is not quite right, regenerate — with 360 possible base hues you will effectively never see the same one twice.

How to use

  1. Click Generate palette to get five harmonious colors built around one random hue.
  2. Click any swatch to copy its HEX code (the #rrggbb format) to your clipboard — the label flashes "Copied!" to confirm.
  3. If a color is not right, click Generate palette again; with 360 possible base hues, you will effectively never see the same palette twice.
  4. Paste the HEX codes straight into CSS, Figma, Canva, or your slide deck.

Frequently asked questions

What is a HEX color code?

A HEX code like #E9A331 packs three color channels — red, green, blue — into six hexadecimal digits after a #. #E9A331 means red E9 (233), green A3 (163), blue 31 (49): a warm amber. Every design tool and CSS accepts this format.

How do I convert HEX to RGB?

Split the six digits into three pairs and read each pair as hexadecimal: #E9A331 becomes rgb(233, 163, 49). In CSS you can use the HEX code directly, and most design tools also accept rgb() notation, so conversion is rarely needed.

Why do the five colors always look good together?

The tool does not pick random RGB values, which usually clash. It starts with one random hue and derives the other four from color-theory relationships — neighboring analogous hues plus a complementary opposite — keeping saturation rich and lightness balanced.

Are these palettes accessible for text?

Not automatically. For body text, aim for a contrast ratio of at least 4.5:1 against the background (the WCAG AA guideline). Use the lightest swatch for text on dark backgrounds, or the darkest swatch for text on light ones, and check the pairing in a contrast checker before shipping.