Color Converter — HEX / RGB / HSL
HEX
RGB
HSL
Popular colors — click to apply

Color format conversions

HEX to RGB

HEX colors use a 6-digit hexadecimal code (e.g. #FF5733). Each pair represents Red, Green and Blue from 0 to 255. Example: #7C6AFF = rgb(124, 106, 255).

RGB to HSL

HSL (Hue, Saturation, Lightness) is more intuitive for designers. Hue is the color angle (0–360°), saturation the color intensity, and lightness the brightness from black to white.

Which format should I use?