Free online text tool

Random Color Generator

Random Color Generator creates a list of random hex colors. Enter how many colors you need, click the button and copy the codes. It is free and runs in your browser.

Random Color Generator

0Character Count
0Character Count (without spaces)
0Word Count
0Sentence Count
0Paragraph Count
0Line Count

List of Colors

Before
Number of colors to create: 5
After
#43556a
#9cb9ef
#b0deac
#80391a
#b695f0

Bookmark: press Ctrl+D (Windows) or Cmd+D (Mac) to save this tool.

Suggest a New ToolProvide Feedback on This Tool

What does Random Color Generator do?

This tool creates random hex colors. A hex code such as #43556a describes one color and works in CSS, design tools and most editors. Enter how many colors you want and the tool makes the list for you.

Each code is on its own line, so you can copy the whole list in one go. By default the codes are lowercase and each one is also shown as a color swatch. You can switch to uppercase codes or hide the swatches.

You can make up to 100 colors at a time. Every click gives a new set, and nothing leaves your browser.

Random color generator examples

Each row shows the settings you choose and what you get. The colors are random, so your list will differ.

SettingsResult
5 colorsFive random hex codes, one per line, such as #43556a.
1 colorA single random hex code.
10 colorsTen random hex codes, one per line.
5 colors, uppercaseFive hex codes in capital letters, such as #9CB9EF.
20 colors with swatchesTwenty hex codes and twenty color boxes below the list.
Largest size, 100 colorsOne hundred random hex codes, the most the tool makes.
0 colorsEnter a whole number from 1 to 100. Your list was not changed.
2.5 colorsEnter a whole number from 1 to 100. Your list was not changed.
Empty fieldEnter a whole number from 1 to 100. Your list was not changed.

How to generate random colors

  1. 1
    Enter the number of colors
    Type how many random colors you want, from 1 to 100.
  2. 2
    Choose the options
    Tick Uppercase hex codes if you prefer capital letters, and keep Show color swatches ticked to see each color as a box.
  3. 3
    Click Generate Random Colors
    The list of hex codes appears in the box, one per line. Click again for a new set.
  4. 4
    Copy the list
    Click Copy and paste the hex codes into your design tool, CSS or document.

When to use random colors

Good for

Color ideas, mock-ups, test data, charts, placeholder graphics and quick inspiration when you need a handful of colors fast.

Check first

Random colors are not chosen to look good together or to be readable. Check the contrast before you use one as a text or background color.

Other tools

To work with hex codes, try Extract Hex Colors, Convert Text to Hex or Convert Hex to Text. For other random data, try Random Number Generator or Random Password Generator.

Random color generator FAQ

What does the Random Color Generator do?

It creates a list of random colors as hex codes. You choose how many colors you want and the tool lists them instantly.

How do I generate random colors?

Enter the number of colors, then click Generate Random Colors. The hex codes appear in the box, one per line, and you can copy them with the Copy button.

What is a hex color code?

A hex color code is a hash sign followed by six characters (0 to 9 and a to f), such as #43556a. The first two characters are red, the next two green and the last two blue.

Can I see the colors?

Yes. Keep Show color swatches ticked and each code is shown inside a box filled with that color.

Can I get capital letters in the hex codes?

Yes. Tick Uppercase hex codes and codes such as #9cb9ef become #9CB9EF. Both forms work the same in CSS.

Is the list different every time?

Yes. Every click picks new random colors, so you will almost never get the same list twice.

Where can I use the colors?

Use them in CSS, design tools, charts, mock-ups or any place that accepts hex codes. Random colors are not checked for contrast, so test text colors before you use them.

How many colors can I create?

From 1 to 100 at a time. If the number is outside that range, the tool shows a message and leaves the list as it is.

Is my data private?

The tool is free, needs no account and runs in your browser, so nothing you do here is uploaded to a server.

Looking for more tools?

Browse Generator Tools

Last updated: 18 November 2026