Choosing colours from a blank colour picker is oddly paralysing. There are over 16 million options and no obvious place to start. Designers, developers building a side project, teachers making slides and small business owners designing a flyer all run into the same wall. Random colours are a good way through it: they surface combinations you would not have tried and let you react instead of invent.
Pure randomness, though, tends to produce clashing jumbles. This guide explains how colour is structured, how constrained randomness (pastel, vivid, analogous, monochrome) gives more usable results, and a practical workflow for turning a lucky shuffle into a palette you can actually ship.
How colours are described
Screens mix red, green and blue light, so colours are commonly written as HEX (#3A7BD5) or RGB (rgb(58, 123, 213)). Both describe the same thing: how much of each light channel to use. They are precise but hard to reason about.
HSL (hue, saturation, lightness) is much easier to work with when building palettes:
- Hue is the position on the colour wheel, from 0 to 360 degrees (0 is red, 120 green, 240 blue).
- Saturation is how intense the colour is, from grey (0%) to full strength (100%).
- Lightness runs from black (0%) through the pure colour (50%) to white (100%).
For a fuller comparison of these formats, see HEX, RGB, HSL and CMYK colour codes explained.
Why constraints make random colours work
Completely random HEX values spread evenly over every hue, saturation and lightness. You get muddy browns next to neon green next to near-black. Palettes feel coherent when some of the three HSL values are held within a range:
| Style | What is constrained | Feel |
|---|---|---|
| Pastel | High lightness, medium saturation | Soft, friendly, calm |
| Vivid | High saturation, mid lightness | Energetic, bold |
| Dark | Low lightness | Moody, good for dark themes |
| Analogous | Hues close together on the wheel | Harmonious, natural |
| Monochrome | One hue, stepped lightness | Clean, very consistent |
Generate and refine a palette with our tool
The Random Color Generator runs in your browser and generates colours from the secure random source.
- Open the Random Color Generator. Five random colours appear straight away.
- Choose a Style: Any colour, Pastel, Vivid, Dark, Analogous palette or Monochrome palette.
- Set the number of Colours with the slider, from 1 to 10.
- Click Generate, or press the space bar, to get a new set.
- When you like a colour, click Lock under it. Locked colours stay put while the others change on the next generate.
- Keep generating until the unlocked slots complement your locked favourites.
- Copy values individually (HEX, RGB and HSL each have a copy button, and clicking the swatch copies the HEX), or use Copy all HEX, Copy as CSS variables or Copy as JSON array below the grid.
The CSS export produces a ready-to-paste block:
:root {
--color-1: #F4A6B7;
--color-2: #A8D8EA;
--color-3: #FFE3A3;
}
Rename the variables to their roles (--brand, --accent, --surface) once you have settled on the palette.
A practical palette workflow
- Start with one anchor colour. If you already have a brand colour, you can't lock it directly, but you can generate an analogous or monochrome palette until a close match appears, then fine-tune it with a Color Picker.
- Pick a style that matches the mood. A children's product suits pastel or vivid; a finance dashboard usually suits monochrome with one accent.
- Lock two or three favourites, regenerate the rest. This is where the lock button earns its keep.
- Assign roles. A typical interface needs a background, a surface, a text colour, a primary action and one or two accents. Not every palette colour has to be used at equal weight; a common rule of thumb is a dominant colour, a secondary and a small amount of accent.
- Check contrast. Put your text colour on your background in a Color Contrast Checker. Pastel palettes in particular often need a much darker text colour than the palette itself provides.
Other ways to find colours
From a photo. If you want colours that feel natural together, extract them from a photograph you like with Color Palette From Image. Nature photos tend to produce harmonious sets.
Colour wheel theory. Complementary (opposite hues), triadic (three hues evenly spaced) and split-complementary schemes are classic starting points. They are more predictable than random generation but can feel textbook.
Design software. Figma, Adobe tools and many presentation apps include palette features and swatch libraries. If your team already works there, generating inside the app avoids copy-and-paste steps.
Existing design systems. For interface work, established colour scales (such as those shipped with popular CSS frameworks) are tested for consistent steps. Random palettes are better for illustrations, social graphics and brand exploration.
Tips and pitfalls
Pastels and white text don't mix
Pastels have high lightness, so white text on them is usually unreadable. Use a dark grey or a much darker shade of the same hue. See WCAG colour contrast ratio explained for the numbers behind "readable".
Screens are not paper
HEX and RGB describe screen colours. Vivid screen colours may print duller, because printers use a smaller range of colours. If the palette is for print, ask your printer for proofs.
Colour blindness
Some combinations, especially red and green of similar lightness, are hard to tell apart for many people. Don't rely on colour alone to convey meaning; add labels or icons.
Save your palette
The generator does not store palettes between visits. Copy the CSS variables or JSON array into your project notes before closing the page.
Frequently asked questions
How do I get the same colour again?
Copy its HEX code. Random generation won't repeat it reliably, but the HEX code recreates it exactly anywhere.
What is the difference between analogous and monochrome?
Analogous uses several neighbouring hues, such as blue, teal and green. Monochrome keeps one hue and varies saturation and lightness.
Can I use the space bar to regenerate?
Yes. Press the space bar anywhere on the page outside a text field or button to generate a new set, keeping locked colours.
How many colours should a palette have?
For most projects three to five is plenty: a background, a text colour, a primary colour and one or two accents.
Can I export to CSS?
Yes. Copy as CSS variables gives a :root block with numbered custom properties you can paste into a stylesheet.