Random Color Generator
Get a random color with its HEX, RGB and HSL codes, the closest color name and how readable text is on it
Color Settings
How to Use the Random Color Generator
- Pick a color family: leave it on Any for a color from anywhere, or narrow it to reds, blues, greens, browns, grays and more.
- Choose a style: Vivid for strong, bright colors, Pastel for soft ones, Light or Dark, or Muted for quieter, grayer shades.
- Choose how many: one color shown large, or 6, 12 or 24 at once. Tap any of them to see its details.
- Click "Random Color": the swatch flicks through colors and lands on yours. Click again while it rolls to land it right away.
- Copy a code: each value has its own copy button, and "Copy HEX" copies every color's HEX code at once.
With Any family and Any style, every one of the 16,777,216 colors a screen can show has the same chance of coming up.
Frequently Asked Questions
What do HEX, RGB and HSL mean?
They are three ways to write the same color. HEX (#3A7BD5) is the short code used in web design, RGB gives the red, green and blue amounts from 0 to 255, and HSL gives the hue in degrees, then saturation and lightness as percentages.
What is the color name?
It is the closest of the named colors that web browsers understand, such as "cornflowerblue" or "salmon". If your color matches one exactly, the name is shown on its own.
What does the text contrast show?
How easy white or black text is to read on the color, as a contrast ratio. 4.5:1 or higher works for normal text (AA), 7:1 or higher reads very easily (AAA), and 3:1 is enough only for large headings.
How do the families and styles work?
Each family is a range of hues on the color wheel, and each style is a range of saturation and lightness. Browns and grays are handled on their own, since they are about lightness and grayness as much as hue.
Will the color look the same everywhere?
Close, but not exactly. Screens and printers show colors a little differently, so check important colors on the device or paper they are meant for.
How random is it?
Every color is picked with your browser's built-in cryptographic random number generator, right on your device.