Hex to RGB

Convert hex color codes to RGB values instantly. See the color preview in real time.

🎨 Hex to RGB

Invalid input

RGB Values

⚙️ Step-by-Step Breakdown

Enter a value to see the conversion steps

🕑 Recent Conversions

Your conversions will appear here

What Is Hex to RGB

Hex to RGB conversion translates a 6-digit hexadecimal color code into its Red, Green, and Blue component values (each 0-255).

Hex colors are the standard in web design (CSS), while RGB values are used in image processing, displays, and design software.

🔄 Interactive RGB Explorer

How to Convert Hex to RGB

Split the 6-digit hex code into three pairs: the first pair is Red, the second is Green, the third is Blue. Convert each pair from hex to decimal.

For example, #FF5733 → R: FF=255, G: 57=87, B: 33=51 → rgb(255, 87, 51).

⚡ Try It — Step-by-Step Demo

Frequently Asked Questions

A hex color code is a 6-digit hexadecimal number preceded by #. It encodes RGB color values in the format #RRGGBB.
RGB uses three channels — Red, Green, Blue — each ranging from 0 to 255, to represent colors.
Split into pairs of hex digits (RR, GG, BB) and convert each pair to a decimal number (0-255).
#000000 is black (R:0, G:0, B:0). #FFFFFF is white (R:255, G:255, B:255).
Yes, 8-digit hex codes (#RRGGBBAA) include an alpha channel for transparency.

All Conversion Tools

Dec → Hex

Decimal to Hexadecimal

Base 10 → Base 16

Try Now →
Hex → Dec

Hexadecimal to Decimal

Base 16 → Base 10

Try Now →
Dec → Bin

Decimal to Binary

Base 10 → Base 2

Try Now →
Bin → Dec

Binary to Decimal

Base 2 → Base 10

Try Now →
Dec → Oct

Decimal to Octal

Base 10 → Base 8

Try Now →
Oct → Dec

Octal to Decimal

Base 8 → Base 10

Try Now →
Oct → Hex

Octal to Hexadecimal

Base 8 → Base 16

Try Now →
Hex → Oct

Hexadecimal to Octal

Base 16 → Base 8

Try Now →
Oct → Bin

Octal to Binary

Base 8 → Base 2

Try Now →
Bin → Oct

Binary to Octal

Base 2 → Base 8

Try Now →
Hex → Bin

Hexadecimal to Binary

Base 16 → Base 2

Try Now →
Bin → Hex

Binary to Hexadecimal

Base 2 → Base 16

Try Now →
Dec → BCD

Decimal to BCD

Convert decimal numbers to Binary Coded Decimal (B...

Try Now →
Dec → 2's

Decimal to 2's Complement

Convert decimal integers (including negatives) to ...

Try Now →
Bin → ASCII

Binary to ASCII

Convert binary numbers to ASCII text characters. D...

Try Now →
Bin → Gray

Binary to Gray Code

Convert standard binary to Gray code (reflected bi...

Try Now →
Hex → ASCII

Hex to ASCII

Convert hexadecimal values to ASCII text. Decode h...

Try Now →
RGB → Hex

RGB to Hex

Convert RGB color values to hexadecimal color code...

Try Now →
ASCII → Hex

ASCII to Hex

Convert ASCII text to hexadecimal representation. ...

Try Now →
Hex → Text

Hex to Text

Convert hexadecimal strings to readable text. Deco...

Try Now →
Dec → Frac

Decimal to Fraction

Convert decimal numbers to simplified fractions. S...

Try Now →
Dec → %

Decimal to Percent

Convert decimal values to percentages instantly wi...

Try Now →
Any → Any

Number Base Converter

Convert numbers between any bases (2-36). Universa...

Try Now →
Hex → Info

Hexadecimal Reference

Complete hexadecimal reference with conversion tab...

Try Now →
Hex → Unicode

Hex to Unicode

Convert hexadecimal code points to Unicode charact...

Try Now →
ASCII → Bin

ASCII to Binary

Convert ASCII text to binary representation. See e...

Try Now →