Random color generator
Generate random colors with one click: 1 to 50 at a time, as any color or in a mood such as pastel, vivid, muted or dark. Each one comes with its HEX code to copy, or copy them all as a list. Free and online, drawn with your browser's secure random numbers.
How to generate random colors
- 1Choose "How many": 1, 5, 10, 20 or 50
- 2Choose a "Kind": "Any color", "Pastel", "Vivid", "Muted" or "Dark"
- 3Click "New colors" until you like what you see
- 4Copy one HEX code, or all of them with "Copy as HEX list"
- A set of random colors with their HEX codes
How it works
- Secure random numbers.Drawn with crypto.getRandomValues, the browser's random source for security
- Truly any color.With "Any color" each of the 16.7 million HEX colors is equally likely
- Moods that hold.Pastel, vivid, muted and dark keep lightness and chroma in a set range, in OKLCH
What you can do
- Draw 1, 5, 10, 20 or 50 random colors at once, shown as swatches with their HEX codes. 10 is preset
- Keep the colors in one mood: "Pastel" (light and soft), "Vivid" (strong), "Muted" (grayish) or "Dark"
- Copy a single HEX code with its button, or every color with "Copy as HEX list", one per line
- Get a new set with "New colors". Changing the number or the kind draws a new set too
Good to know
- Every click draws a new set and the old one is gone. Copy the colors you want to keep before you click again
- The colors are random, not matched to each other. For colors that go together, use the Palette generator
- In a mood only lightness and chroma are held in a range. The hue is random all round the wheel, so a pastel set can hold pink, mint and lilac side by side
Questions
How do I get a random HEX color?
Set "How many" to 1 and click "New colors". The HEX code shows under the swatch with a copy button.
Are the colors really random?
Yes. They come from your browser's secure random numbers (crypto.getRandomValues). With "Any color" every HEX color from #000000 to #FFFFFF has the same chance.
Can I get only pastel colors?
Yes. Choose "Pastel" under "Kind". Every color is then light with little chroma, in a random hue.
Can I make a random color palette?
Set "How many" to 5 and click "New colors" until a set works for you. For five colors worked out to match, the Palette generator has a "Random start color" button.
More tools in Web & code
That page doesn't exist. Search or drop a file below to find the tool you need.
One site for every file job. What’s yours?
Stop hopping between converter sites. Pick from 410+ tools, or a recipe that chains several.
- Files Stay On Your Device
- No watermark
- Works offline
Drop a file here
A pasted file works too.
or search for a tool
Open an app
From “ugh, this file” to done, in three steps.
- Drop it, or pick a task
No file? Search for what you need. Files are processed on your device, not uploaded for processing.
- Pick what you want
Smaller, another format, signed, merged. One click, no settings to study first.
- Make it a recipe
Need three steps in a row every week? Chain them once and run the same recipe next time.
One approved toolbox for the whole team.
In offices, on building sites and in agencies, teams handle sensitive files all day. ToolRecipe gives everyone the same tools and the same recipes, and the files are processed on each person's own computer.
- Files are processed on the employee's device
- Company recipes everyone runs the same way
- One place instead of ten converter sites