Random Color Generator

Generate random colours with swatches and HEX and RGB values, one or many at a time.

Random coloursGenerated
#D30685 rgb(211, 6, 133)
#229D3C rgb(34, 157, 60)
#1FD9AB rgb(31, 217, 171)
#53E010 rgb(83, 224, 16)
#CC5A57 rgb(204, 90, 87)
Runs locally in your browser

About the Random Color Generator

A random colour is useful for design inspiration, for assigning distinct colours to items in a chart or map, and for test data. This tool generates as many random colours as you ask for, each shown as a swatch with its HEX and RGB values, using the browser's random source.

Uniformly random RGB is not the same thing as uniformly random-looking. The space is a cube while the eye is not, so a straight draw returns many more dark, muddy results than bright clear ones, and a fair share of them will be simultaneously too dark for black text and too light for white. Generate a batch and choose from it rather than accepting the first result.

For test data the calculation is different and the randomness is the point: distinct colours for a hundred map markers, a fixture set for a screenshot comparison, or a placeholder background behind a set of initials. If you need the same colour to come back for the same record, derive it from a stable key with a hash instead of a random source. For plain random hexadecimal strings rather than colours, use the Random Hex Generator.

The colours are fully random across the RGB space, so they are varied rather than harmonised; for a coordinated set, generate one and build a scheme with the Palette Generator. To see all formats of a colour you like, paste it into the Color Converter.

How to use

  1. Choose how many colours.
  2. Press Generate.
  3. Copy the HEX codes you like.

Common questions

Are the colours harmonised?
No, they are fully random. For a coordinated palette, use one as a base in the Palette Generator.
How many can I generate?
Up to 50 at a time.
Can I get a random colour in a specific range?
Not directly; generate a base and adjust it, or use the Shades Generator for variants.