HEX to RGB Converter

Convert HEX color codes to RGB values

HEX Color
RGB Result
rgb(139, 92, 246)

HEX vs RGB

HEX (hexadecimal) is a six‑digit representation of a color: #RRGGBB. Each pair (RR, GG, BB) is a value from 00 to FF (0-255 in decimal).

RGB uses three numbers (0-255) for red, green, and blue. Both represent the same color, just in different formats. Designers often use HEX for web, while developers sometimes prefer RGB for CSS manipulation.

How to Use

Step 1: Enter a HEX color code (with or without #) or use the color picker.
Step 2: Click “Convert”. The RGB values appear immediately.
Step 3: Copy the RGB result to use in your CSS or design tool.

You can also see a live preview of the color.

Frequently Asked Questions

What is the difference between HEX and RGB?
HEX is base‑16, RGB is decimal. They are mathematically equivalent. Browsers accept both.
Can I convert RGB to HEX?
Yes, we have a dedicated RGB to HEX tool. Check the related tools below.
Does it support shorthand HEX like #8B5?
No, only full six‑digit codes. You can expand shorthand manually (e.g., #8B5 → #88BB55).