Random Color Generator

Press the button for a new color. Tap a code to copy it.

#FF6B4A

Closest CSS name: Tomato

White text 2.82:1Black text 7.45:1 ✓

One of 16,777,216 colors. Space to draw, ← for the previous pick, → for the next pick or a new one.

Choose the kind of color

Any color picks from all 16,777,216 colors of 24-bit RGB, each with the same chance. Pastel, Vivid, Dark and Muted pick a random hue and keep saturation and lightness in a set range, so a run of colors shares one mood. CSS names draws from the 139 named colors of CSS, such as Coral and RebeccaPurple, and shows each once before any repeats.

The codes

HEX is the six-digit code used in CSS and most design apps. RGB gives red, green and blue from 0 to 255. HSL gives the hue in degrees and saturation and lightness in percent, with a decimal only where a whole number would give a different color.

Text on the color

The two contrast lines show how readable white or black text would be on this color, by the WCAG 2 formula. A check mark means the contrast is at least 4.5:1, the WCAG AA minimum for normal text. The closest CSS name is the named color nearest to this one in CIELAB, a color space built around how people see differences.

The ⤢ button fills the whole screen with the color. Press Space or Next color for the next one, and Esc to leave.

Questions

Can I share a color?

Press Share. The link opens this page on the same color.

Will a color come up twice?

In CSS names, not until all 139 have come up; this device remembers the round. The other kinds draw each color on its own, so a repeat is possible.

Can I get my last few colors back?

The swatches under the buttons hold your last 12 colors. Tap one to bring it back, or use ← and →.