Color & Design

HEX to RGB Converter

Paste a HEX color code and get the RGB values immediately, along with a live preview and CSS-ready strings.

Color & design

HEX to RGB

Local only
rgb(37, 99, 235)#2563EB
RGBrgb(37, 99, 235)
RGB values37, 99, 235
RGBA (80% opacity)rgba(37, 99, 235, 0.8)
HSLhsl(221, 83.2%, 53.3%)
Runs on your device

The conversion is plain arithmetic in your browser — nothing is uploaded.

How HEX becomes RGB

A HEX code is just three pairs of hexadecimal digits. Each pair is a base-16 number from 00 to FF, which equals 0 to 255 in decimal — the exact range RGB uses. So #2563EB splits into 25, 63 and EB, giving rgb(37, 99, 235).

Shorthand and alpha

A three-digit code doubles each digit: #f60 is the same color as #ff6600. An eight-digit code adds an alpha channel at the end; this converter reads the color and ignores the transparency.

Good to know

Frequently asked questions

Does it accept short HEX codes?

Yes. Three-digit and four-digit shorthand is expanded automatically, so #f60 and #ff6600 give the same RGB result.

What about the # symbol?

It is optional. Both 2563eb and #2563eb work.

Can I get an rgba() value?

Yes — a ready-made rgba() string at 80% opacity is included, and you can edit the alpha value after copying.

Is the result rounded?

No rounding is needed. HEX pairs map exactly onto the 0–255 RGB range, so the conversion is lossless.