Why use Random Color Generator?
- Generate palettes of 1, 4, 6 or 8 colors in a single click
- Lock individual swatches to preserve favorites while regenerating the rest
- HEX, RGB and HSL values with one-click copy for every swatch
- Automatic contrast detection keeps swatch labels always readable
About Random Color Generator
Random Color Generator produces cryptographically random colors using the Web Crypto API. Pick a palette size of 1, 4, 6 or 8 swatches, hit Regenerate, and every unlocked slot gets a brand-new color. Each swatch shows HEX, RGB and HSL values with one-click copy buttons, so you can drop a color straight into your CSS or design tool without any manual conversion.
The lock-and-regenerate workflow is the heart of the tool: find a color you love, lock it, then keep spinning the others until the entire palette clicks. Everything runs in the browser — no data is sent anywhere, the tool is free and there is no account requirement. Whether you're a developer looking for an accent color or a designer building a mood board, this tool makes color exploration fast and fun.
How to use Random Color Generator
- 1
Choose a palette size
Select how many colors you want — from a single color to a full 8-swatch palette.
- 2
Regenerate until you love it
Click "Regenerate" to get a fresh set of colors. Lock any swatch you want to keep by hovering and clicking the lock icon.
- 3
Copy your values
Click the copy button next to any HEX, RGB or HSL value to put it straight on your clipboard.
Frequently asked questions
Are the colors truly random?
Yes. Each color is generated by producing three independent random bytes (R, G, B) using the Web Crypto API, which provides cryptographically strong randomness.
What does the lock icon do?
Locking a swatch prevents it from being changed on the next Regenerate click. This lets you build a palette gradually by keeping colors you like and cycling the rest.
Can I get a specific type of color (e.g. pastel or dark)?
The current tool generates fully random colors across the entire spectrum. For a focused palette, consider the Color Palette Generator which supports harmony rules.
How do I use the copied values in CSS?
HEX values (e.g. #4f46e5) work in any color property. RGB values work as-is: color: rgb(79, 70, 229). HSL values work too: color: hsl(243, 75%, 59%).
Is there a limit on how many times I can generate?
No. You can generate and regenerate as many times as you like, completely free, with no account or signup.
Related random & generators
Browse more free tools
Explore every category in our toolbox.