Random Color Generator
Generate a random color with one click. Each color comes with its hex, RGB, and HSL codes ready to copy into your design tool, CSS, or art project โ good for breaking a creative block, finding a palette you would never have reached for on purpose, or just exploring the full range of 16.7 million possible colors.
Every Color Is Equally Likely
The generator picks each of the red, green, and blue channels independently from 0โ255, which is the full 24-bit RGB space: 16,777,216 colors, none of them weighted. That is worth knowing before you use it as a palette source โ a uniform draw over RGB is not a uniform draw over perceived color, so muddy mid-tones come up far more often than pure hues. If you want a specific mood, generate several and pick, rather than expecting one click to hand you a pastel.
Understanding the Three Codes
A hex code like #3A7BD5 encodes red, green, and blue as pairs of hexadecimal digits โ the format CSS and virtually every design tool accept. RGB expresses the same three values in decimal, like rgb(58, 123, 213), which is what you want when a value has to be computed rather than pasted.
HSL is the odd one out and usually the most useful once you have a color you like. It describes hue as a position on the color wheel (0โ360ยฐ), saturation as how vivid the color is, and lightness as how close it sits to white or black. Tweaking a hex code by hand is guesswork; nudging the L in an HSL value gives you a lighter or darker version of the same color, and holding H while dropping S gives you a muted companion. That is how a single random draw turns into a small palette.
Frequently Asked Questions
How many colors can this generator produce?
The generator picks from the full 24-bit RGB color space, which contains 16,777,216 distinct colors. Every color is equally likely, so each click can produce anything from a subtle pastel to a vivid neon.
What color code formats are provided?
Each generated color is shown in three standard formats: hex (like #3A7BD5, used in CSS and design tools), RGB (red, green, and blue values from 0 to 255), and HSL (hue, saturation, and lightness). Click any code to copy it to your clipboard.
How do I copy a color code?
Click on any of the displayed codes โ hex, RGB, or HSL โ and it is copied to your clipboard automatically. A 'Copied!' confirmation appears so you know it worked.
What can I use random colors for?
Random colors are great for sparking design ideas, picking placeholder colors during development, running art challenges with a constrained palette, assigning colors to players or teams in games, and learning how hex, RGB, and HSL values map to real colors.