| hex | #52b0c2 |
| rgb | rgb(82,176,194) |
| hsl | hsl(189.64,0.48,0.54) |
| Sample |
The Random Color Generator produces a genuinely random color, shown in three formats at once — hex code, RGB, and HSL — along with a visual color swatch so you can see exactly what the color looks like.
Because the color is generated across the full color space rather than from a limited palette, results range from muted, subtle tones to vivid, saturated colors with equal likelihood.
Designers, developers, and artists use this generator for color inspiration, CSS prototyping, and design exploration.
Hex codes, RGB, and HSL are the three most common ways developers and designers specify color in digital work. Hex codes pack red, green, and blue values into a compact six-character code, RGB expresses those same values as separate numbers from 0-255, and HSL describes color by hue, saturation, and lightness — often more intuitive for adjusting a color's character.
This generator shows all three formats for every color, so you can copy whichever one fits your project's code or design tool.
The standard compact web color format.
Red, green, and blue values from 0-255.
Hue, saturation, and lightness values.