Random color generator

Roll the dice, keep what you like, copy the code. Press Space to shuffle without leaving the keyboard.

#16A34A
  • Hex#16a34a
  • RGBrgb(22, 163, 74)
  • HSLhsl(142, 76%, 36%)
  • OKLCHoklch(0.627 0.17 149)
Tints (toward white)
Shades (toward black)

The quick color guide

Everything you need to know, minus the jargon.

So, what is this thing?

It's a color slot machine for designers, developers, and anyone stuck staring at a blank canvas. Every pull gives you fresh colors, each with codes you can paste straight into CSS, Figma, or your slide deck.

Getting the most out of it

1
Start loose
Begin in Surprise me mode and let happy accidents guide you.
2
Lock the winners
Found one you love? Lock it and keep shuffling around it.
3
Narrow it down
Switch to Fine-tune to stick to a hue, a mood, or a brightness.
4
Check the ramp
Tints and shades give you hover states, borders, and backgrounds for free.

The colors everyone knows

Most of the world gets by with a dozen names. Here are the usual suspects, with a typical shade of each.

Red
#ef4444
Energy, urgency, love
Orange
#f97316
Warmth, playfulness
Yellow
#facc15
Optimism, attention
Green
#22c55e
Growth, success, calm
Blue
#3b82f6
Trust, focus, clarity
Purple
#8b5cf6
Creativity, luxury
Pink
#ec4899
Fun, care, boldness
Brown
#92400e
Earthy, grounded
Black
#09090b
Power, elegance
Gray
#71717a
Neutral, balanced
White
#ffffff
Space, simplicity
Teal
#14b8a6
Fresh, modern

RGB and Hex: one color, two ways to write it

Screens make color by mixing red, green, and blue light. Each channel gets a number from 0 (off) to 255 (full blast). That's RGB. Hex is the very same recipe written in base 16, so each channel fits into two characters (00 to FF) and the whole color becomes a short code starting with #.

#16A34A
rgb(22, 163, 74)
R
22 = 16
G
163 = A3
B
74 = 4A
Quick sanity check: #000000 is black (all lights off), #FFFFFF is white (all lights on), and equal numbers in all three channels always give a gray.

Tints and shades

Take any color and you can make a whole family out of it. Stir in white and you get tints: softer, airier versions. Stir in black and you get shades: deeper, moodier ones. The hue stays the same, only the intensity changes, which is why they always look good together.

Tints: original + white
Shades: original + black

Handy for: hover and pressed button states, subtle backgrounds, borders, charts, and dark mode.

How many colors can it pick from?

16,777,216
possible colors in Surprise me mode

That's 256 levels of red × 256 of green × 256 of blue. Every combination has an equal chance, so you could pull the same color twice, but odds are about 1 in 16.7 million.

256 reds×256 greens×256 blues

Fine-tune mode draws from a slice of that total, depending on the hue, saturation and lightness you choose. A smaller pool means more consistent results.