Random color generator
Generate a random color with one click, with its name and hex, RGB or HSL code.
- #30378Ddarkslateblue
- Colors you roll show up here.
Free and open source
Turn random colors intopages, ads and prototypes.
Agent-Native Design builds each one in the colors you rolled, with readable text on every background.
Random hex colors in code
More free color tools
FAQs
Random color questions
Press the spacebar or the New color button. Each press gives you a new random color with its name and hex code. Switch to RGB, HSL or OKLCH under the colors for the other codes.
Every color here shows its hex code. Click a color to copy it. To make one in code, pick a random number from 0 to 16,777,215 and write it in base 16, as the JavaScript and Python examples show.
Press the lock on it, or tab to it and press L. Locked colors stay put while the others change, and the page link keeps your locks.
Yes. Pick a family, such as blue, and every new color is blue. You can also ask for pale or vivid colors, or light or dark ones.
They come from your browser's cryptographic random number generator, the same kind used to make security keys. With no family or other rule set, every color has the same chance.
16,777,216. That's every color a standard screen can show, from #000000 to #FFFFFF.