🎨 HEX to RGB/RGBA Converter

Convert HEX colors to RGB, HSL, CMYK with live color preview.

Enter HEX Color

HEX#8b5cf6
RGBrgb(139, 92, 246)
RGBArgba(139, 92, 246, 1)
HSLhsl(258, 90%, 66%)
HSLAhsla(258, 90%, 66%, 1)
CMYKcmyk(44%, 63%, 0%, 4%)

Frequently Asked Questions

What is HEX color format?
HEX uses # followed by 3 or 6 characters (0-9, A-F). Each pair represents Red, Green, Blue values (0-255). E.g. #8b5cf6 = R:139, G:92, B:246.
What is the difference between HEX and RGB?
HEX uses hexadecimal (#RRGGBB), RGB uses decimal (rgb(255,0,0)). Same colors, different notation. HEX is common in web, RGB in CSS and graphics.
What is RGBA?
RGBA adds an Alpha (transparency) channel. Values: 0 (transparent) to 1 (opaque). Written as rgba(r, g, b, a).
What is HSL color format?
HSL = Hue (0-360°), Saturation (0-100%), Lightness (0-100%). More intuitive for picking colors than RGB.
What is CMYK?
CMYK = Cyan, Magenta, Yellow, Key (Black). Used in print. Values 0-100%. Helps bridge screen and print design.
Does this support 3-digit HEX codes?
Yes! #ABC expands to #AABBCC. Both 3-digit (#RGB) and 6-digit (#RRGGBB) HEX codes are supported, plus 4/8 digit with alpha.
Can I pick a color visually?
Yes, use the color picker or click the preview box to select a color visually.
Can I copy the converted values?
Yes, click Copy next to any format to copy it to clipboard.
Copied!