Random Color Generator

One click gets you a brand-new color with its HEX and RGB codes. You can limit the draw to pastel tones or dark colors only, switch to a palette of five colors, and bring back any color from the history.

Analogous, complementary and triad are harmonies between several colors: choose them with «A palette of five».

The colors are made in your browser: nothing is sent or saved.

Pastels, darks or fully random: what's the difference

The generator works in the HSL color space, which keeps hue separate from lightness. With «All colors» the hue can be anything, saturation goes from 20 to 100% and lightness from 15 to 88%: so you don't get near-whites and near-blacks, which are little use as a surprise color. With «Pastel only» lightness stays high, between 80 and 90%, with saturation between 55 and 90%: out come the soft tones that work beautifully for backgrounds, cards and gentle palettes. With «Dark only» lightness drops to between 10 and 28%: deep colors for text, headers and dark themes, where white type stays easy to read.

One color or five

Above there are two buttons, «One color» and «A palette of five», and this page starts with a single color. Analogous, complementary and triad are harmonies between several colors, so they're chosen with five: with one color alone they wouldn't mean anything. Switching to five, the color in front of you isn't lost: it stays, locked, and the palette is built around it. «Generate» changes everything that isn't locked, and each color has its own buttons to copy the HEX or the RGB.

Ideas for putting a random color to work

A randomly drawn color is a great cure for creative block: use it as the seed of a palette, the background of a slide, the color of an avatar or a cover image. The history lets you generate in rapid fire and then compare your favorites side by side, once you find one that works, copy the HEX and paste it straight into your CSS, Canva or Figma.

Four pages, two jobs

Random Color and Palette generator are the same generator, with one color or five: the two buttons at the top switch from one to the other without changing page. To type a color and get it in every format there are Color converter and Color picker, the same tool with two ways in.

Related tools