Skip to content

Random Color Generator

Generate random hex colours for your designs.

Generated locally in your browser.

5

How do you generate a random color?

Each color is a random 6-digit hex value ranging from #000000 to #FFFFFF, generated instantly so you can copy the codes for palettes, backgrounds or design inspiration. Generating five colors might give a mix of blues, greens and pinks. They make great starting points you can refine with shades or palette tools.

Understanding your result

Random colours are great starting points; refine them with the colour shades or palette tools.

Formula and method

Each colour is a random 6-digit hex value from #000000 to #FFFFFF.

Worked example

Generating five colours might give a mix of blues, greens and pinks.

How to use this tool

  1. Choose how many colours.
  2. Press Generate.
  3. Copy the hex codes.

Common mistakes to avoid

  • Relying on pure randomness for accessible contrast — check contrast separately.

About the Random Color Generator

Generate a set of random hex colours for inspiration, placeholders or palettes. Press Generate again for a fresh set.

Who should use this tool

Designers and developers needing quick colour ideas.

Explore all Developer Tools tools

Frequently asked questions

What format are the colours?

6-digit hex codes. Copy grabs the whole set.

Can I get more at once?

Yes, up to 12 at a time with the slider.

Share this tool

Free to use — copy the link, share it anywhere, or add the tool to your own website.

Embed this tool on your site (free)

Copy this code and paste it into any web page — it stays free and always up to date: