Color Converter (HEX, RGB, HSL, CMYK)
Type any CSS color (#hex, rgb(), hsl() or a name like "teal") or use the picker.
HEX
RGB
HSL
CMYK
Color formats explained
HEX and RGB describe red, green and blue channels from 0 to 255. HSL describes hue (0–360°), saturation and lightness, which is easier for creating shades. CMYK is used for print; values here are a simple conversion without a color profile.
Frequently asked questions
How do I convert HEX to RGB?
Split the 6-digit hex code into three pairs and convert each from base 16 to decimal: #2563EB becomes rgb(37, 99, 235).
Does it support transparency?
Yes. Enter an rgba(), hsla() or 8-digit hex color and the alpha channel is kept in every format except CMYK.