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.
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.
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.
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.
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.
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).