HEX to RGB Converter

Convert any HEX color code to RGB instantly. Click any result to copy it.

Choose a color or enter a HEX code. RGB, HSL, and CMYK values update automatically.

Try These Example Colors

Click any color to load it into the converter.

#C2541A
rgb(194, 84, 26)
#E8A045
rgb(232, 160, 69)
#7B9EB8
rgb(123, 158, 184)
#1A2B4A
rgb(26, 43, 74)
#F5C8A0
rgb(245, 200, 160)
#8B2500
rgb(139, 37, 0)
#4A7CB8
rgb(74, 124, 184)
#9090B8
rgb(144, 144, 184)
#F0A090
rgb(240, 160, 144)
#A0D8C8
rgb(160, 216, 200)
#B87333
rgb(184, 115, 51)
#C4956A
rgb(196, 149, 106)
#3D5A70
rgb(61, 90, 112)
#D4956A
rgb(212, 149, 106)
#6080A0
rgb(96, 128, 160)

What is HEX to RGB Conversion?

What is a HEX color?

A HEX color is a 6-digit code (e.g. #FF5733) representing red, green, and blue values in hexadecimal. Used widely in web design and CSS.

What is RGB?

RGB stands for Red, Green, Blue. Each channel ranges from 0–255. For example, rgb(255, 87, 51) is the same as #FF5733.

How to convert?

Split the HEX into 3 pairs (RR, GG, BB) and convert each from base-16 to base-10. Our tool does this instantly as you type.

How It Works

Three steps to convert any HEX color to RGB, HSL, and CMYK.

1

Enter your HEX code

Type or paste any HEX color code into the input field — with or without the # prefix. Shorthand 3-digit codes like #F53 are supported too.

2

See all formats instantly

The tool converts as you type. You get HEX, RGB, CSS rgb(), HSL, CSS hsl(), and CMYK — all at once. A live color swatch updates so you can visually confirm the color.

3

Click to copy

Click any result box to copy it to your clipboard. Paste directly into CSS, Figma, Tailwind, Adobe XD, or any tool that accepts color values.

Common Questions About HEX to RGB

Answers to what people search for most.

How do I convert HEX to RGB?
Split the 6-digit HEX code into three 2-digit pairs (RR, GG, BB) and convert each from hexadecimal (base-16) to decimal (base-10). For example, #FF5733 → R=255, G=87, B=51. This tool does it instantly as you type.
What is the RGB value of a HEX color?
Every HEX color maps to an exact RGB triplet. #000000 is rgb(0, 0, 0) — black. #FFFFFF is rgb(255, 255, 255) — white. Enter any HEX code above to see its RGB value immediately.
Can I use RGB in CSS instead of HEX?
Yes. CSS accepts both formats. color: #FF5733 and color: rgb(255, 87, 51) produce identical results. RGB is useful when you need to control opacity with rgba(), e.g. rgba(255, 87, 51, 0.5).
Does this tool work with 3-digit HEX codes?
Yes. Shorthand codes like #F53 are automatically expanded to #FF5533 before conversion. Both formats are valid CSS and produce the same color.
What design tools accept RGB color codes?
Figma, Adobe Photoshop, Illustrator, XD, Canva, Sketch, CSS, Tailwind CSS, and virtually every design or development tool supports RGB. Copy the rgb() value from this tool and paste it directly into your color picker.
How do I convert HEX to HSL?
First convert HEX to RGB, then derive Hue (0–360°), Saturation (0–100%), and Lightness (0–100%) from the RGB values. For example, #FF5733 → hsl(11, 100%, 60%). This tool outputs the HSL value and the CSS hsl() string automatically.
How do I convert HEX to CMYK?
Convert HEX to RGB first, then normalize each channel to 0–1 and apply the CMYK formula. CMYK is used in print design — Cyan, Magenta, Yellow, and Key (Black) each expressed as a percentage. For example, #FF5733 → cmyk(0%, 66%, 80%, 0%).
What is the difference between HSL and RGB?
RGB describes color by mixing red, green, and blue light. HSL describes it by Hue (the color angle), Saturation (intensity), and Lightness (brightness). HSL is more intuitive for adjusting colors — e.g. increasing lightness makes any color lighter without changing its hue.
When should I use CMYK instead of RGB?
Use CMYK for print — brochures, business cards, packaging. Printers mix physical inks (Cyan, Magenta, Yellow, Black) rather than light. RGB is for screens. Converting your HEX web color to CMYK ensures your printed output matches your digital design as closely as possible.
Copied!