Color Translation•Live Color Studio•100% Client-Side

HEX to RGB Converter

Convert 3-digit, 6-digit, and 8-digit alpha HEX color codes to RGB and RGBA formats.

#

Supports 3-digit (#FFF), 6-digit (#8B5CF6), or 8-digit alpha (#8B5CF680).

Popular Web Swatches:
RGB Color Model
CSS RGBrgb(139, 92, 246)
Red (R)
139
55%
Green (G)
92
36%
Blue (B)
246
96%

Color Science & Standards

Conversions follow standard sRGB color space and W3C / WCAG 2.1 accessibility guidelines.

R = (HEX >> 16) & 255 | G = (HEX >> 8) & 255 | B = HEX & 255

How to Use HEX to RGB Converter

01

Paste or type your HEX color code (e.g. #3B82F6 or #FFF).

02

Instantly view individual Red, Green, and Blue decimal channel values (0–255).

03

Copy standard CSS `rgb(r, g, b)` and `rgba(r, g, b, a)` snippets.

Frequently Asked Questions

Can I convert 3-digit shorthand HEX codes like #F00?

Yes! 3-digit shorthand #RGB automatically expands to #RRGGBB (e.g., #F00 becomes #FF0000, which is rgb(255, 0, 0)).

How does 8-digit HEX with transparency work?

In an 8-digit HEX code (#RRGGBBAA), the last two characters define the Alpha transparency channel from 00 (0% transparent) to FF (100% opaque).

Explore Companion Color Tools

Free client-side color pickers, converters, CSS gradient generators, and WCAG contrast tools.

View all 10 color tools