Hex to RGB Converter
Convert colour codes between HEX, RGB, HSL, and HSV formats.
RGB
HSL
CMYK
HEX
How It Works
Enter a colour value in any format (HEX, RGB, HSL, HSV) and instantly see the equivalent in all other formats, with a colour preview.
**Hex to RGB Converter — Translate Colours Between All Formats**
Colour codes appear in multiple formats depending on the context — CSS, design tools, print workflows, and hardware all use different systems. Our Colour Code Converter translates between every major format instantly.
**Colour Formats Explained**
**HEX (#RRGGBB)**
Used in: CSS, HTML, web design tools
Format: 6 hexadecimal digits representing Red, Green, Blue (00–FF each)
Example: #FF5733 = Red 255, Green 87, Blue 51
Shorthand: #RGB (e.g., #F53 = #FF5533)
**RGB (Red, Green, Blue)**
Used in: CSS, digital displays, image editing software
Format: rgb(R, G, B) where each channel is 0–255
Example: rgb(255, 87, 51)
**RGBA (with Alpha)**
Used in: CSS for transparency
Format: rgba(R, G, B, A) where A is 0–1
Example: rgba(255, 87, 51, 0.5) = 50% transparent
**HSL (Hue, Saturation, Lightness)**
Used in: CSS, more intuitive colour mixing
Format: hsl(H, S%, L%) where H is 0–360°
Example: hsl(14, 100%, 60%) ≈ coral
Advantage: Easier to create colour variations by adjusting only L or S
**HSV/HSB (Hue, Saturation, Value/Brightness)**
Used in: Photoshop, design tools
Similar to HSL but with different maths for value/brightness
**CMYK (Cyan, Magenta, Yellow, Black)**
Used in: Print design, offset printing
RGB is for screens (additive); CMYK is for print (subtractive)
**Colour Spaces and Profiles**
Colours look different on different devices due to colour spaces (sRGB, Adobe RGB, P3). Web design uses sRGB. Photography often uses Adobe RGB for wider gamut. Conversions between colour spaces require ICC profile information.