Random color generator

Each color picks red, green and blue values from 0 to 255 — 16,777,216 possible colors.

Reading the codes

A hex code like #1E88E5 is three bytes: 1E (30) red, 88 (136) green, E5 (229) blue. HSL gives hue (0–360°), saturation and lightness. For named basic colors try the color wheel picker.

NameHex
Red#e53935
Orange#fb8c00
Yellow#fdd835
Green#43a047
Blue#1e88e5
Purple#8e24aa
Pink#ec407a
Brown#795548
Black#212121
White#ffffff
Gray#9e9e9e
Teal#00897b

How the randomness works

Every result comes from your browser’s cryptographic random number generator (crypto.getRandomValues), the same source used for encryption keys. To turn random bits into a number in a range without bias, values that would make some outcomes slightly more likely are thrown away and redrawn (rejection sampling). Nothing is sent to a server.