About Color Formats

HEX is compact and common in CSS. RGB describes red, green, and blue channels from 0 to 255. HSL describes hue, saturation, and lightness, which can be easier for adjusting palettes.

Use the live preview to check a color quickly, generate a random color, then copy HEX, RGB, and HSL values into CSS, design docs, or UI specs.

Can I use three-digit HEX?

Yes. Values such as #fff are expanded to six-digit HEX.