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.
Number of colors to create: 5
#43556a #9cb9ef #b0deac #80391a #b695f0
Bookmark: press Ctrl+D (Windows) or Cmd+D (Mac) to save this tool.
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.
Each row shows the settings you choose and what you get. The colors are random, so your list will differ.
| Settings | Result |
|---|---|
| 5 colors | Five random hex codes, one per line, such as #43556a. |
| 1 color | A single random hex code. |
| 10 colors | Ten random hex codes, one per line. |
| 5 colors, uppercase | Five hex codes in capital letters, such as #9CB9EF. |
| 20 colors with swatches | Twenty hex codes and twenty color boxes below the list. |
| Largest size, 100 colors | One hundred random hex codes, the most the tool makes. |
| 0 colors | Enter a whole number from 1 to 100. Your list was not changed. |
| 2.5 colors | Enter a whole number from 1 to 100. Your list was not changed. |
| Empty field | Enter a whole number from 1 to 100. Your list was not changed. |
Color ideas, mock-ups, test data, charts, placeholder graphics and quick inspiration when you need a handful of colors fast.
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.
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.
It creates a list of random colors as hex codes. You choose how many colors you want and the tool lists them instantly.
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.
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.
Yes. Keep Show color swatches ticked and each code is shown inside a box filled with that color.
Yes. Tick Uppercase hex codes and codes such as #9cb9ef become #9CB9EF. Both forms work the same in CSS.
Yes. Every click picks new random colors, so you will almost never get the same list twice.
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.
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.
The tool is free, needs no account and runs in your browser, so nothing you do here is uploaded to a server.
Last updated: 18 November 2026