Color converter

Type a HEX code, an rgb() or hsl() value, or a CSS name, or use the picker: every format updates instantly.

HEX
RGB
HSL
HSV
CMYK
LAB

Color tools

Browse colors by family

How the conversions work

HEX → RGB: split the six digits into three pairs and read each as a base-16 number (00 = 0, FF = 255). RGB → HSL: scale channels to 0–1, take max and min; lightness = (max + min) / 2, saturation = (max − min) / (1 − |2L − 1|), and the hue angle depends on which channel is largest. RGB → CMYK: K = 1 − max(R, G, B), then C = (1 − R − K) / (1 − K), and likewise for M and Y.

Worked example: #E11D48

E1 = 225, 1D = 29, 48 = 72 → rgb(225, 29, 72). Max 0.882, min 0.114 → L = 49.8%, S = 76.5%, hue = 345° → hsl(345, 77%, 50%).

Which format should I use?

FormatBest for
HEXCSS, design handoff, compact storage
RGBScreens, canvas, transparency with rgb(… / 50%)
HSLAdjusting lightness or building scales by hand
HSV/HSBColor pickers in design apps
CMYKPrint (a naive conversion; printers use ICC profiles)
LABMeasuring perceived difference (ΔE)

Frequently asked questions

How do I convert HEX to RGB?
Split the hex code into pairs and convert each from base 16: #FF5733 → FF=255, 57=87, 33=51 → rgb(255, 87, 51).
Is CMYK from this tool print-accurate?
No. It is the standard mathematical conversion. Real print output depends on paper, ink and ICC color profiles.
What is ΔE?
Delta E (CIEDE2000) is a measure of how different two colors look. Values under about 2 are barely noticeable.