HEX
#6366F1
RGB
rgb(99, 102, 241)
HSL
hsl(239, 84%, 67%)

Frequently Asked Questions

The tool generates three random integers between 0 and 255, one each for the Red, Green, and Blue channels. These are combined to form a hex color code (e.g. #A3F2B1), and then converted to HSL for the third display format.
A hex color code is a 6-character string prefixed with # that represents a color in the RGB color model using base-16 (hexadecimal) notation. For example, #FF0000 is pure red, #0000FF is pure blue, and #FFFFFF is white.
RGB (Red, Green, Blue) defines a color by mixing light intensities of three primary colors, each from 0–255. HSL (Hue, Saturation, Lightness) describes color more intuitively — hue is the type of color (0–360°), saturation is its vividness, and lightness controls how bright or dark it is.
Click Copy Hex to copy the hex code to your clipboard, then paste it directly into CSS, Figma, Photoshop, Canva, or any design tool that accepts hex color input. You can also use the RGB or HSL values if your tool supports those formats.
There are 256 × 256 × 256 = 16,777,216 possible colors. Each is equally likely, so you could keep clicking for a lifetime and never see every combination.