HCODX/HEX to RGB
100% browser-based · Batch conversion · RGB / RGBA / functional

HEX to RGB

Convert HEX color codes to RGB in your browser. Paste one HEX per line; choose between rgb(...), rgba(..., 1), or comma-separated bare values.

HEX colors
RGB values
Convert options
Reverse (RGB → HEX)
Input size
0 B
Output size
0 B
Colors
0
Status
Ready
Example

HEX in, RGB out

Three-digit shorthand, six-digit standard, and eight-digit with alpha all work. Drop them in, get RGB back.

HEX input
#3b82f6
#ff0000
#10b981
#000
#FFFFFFAA
RGB output
rgb(59, 130, 246)
rgb(255, 0, 0)
rgb(16, 185, 129)
rgb(0, 0, 0)
rgba(255, 255, 255, 0.667)
Use cases

What you'll use this for

Different teams and tools expect different formats. Converting a brand palette from HEX to RGB takes seconds.

CSS authoring

Convert design tokens to rgb() when you need to mix transparency or interpolate channels.

Design system docs

Publish brand colors in every format consumers might want — HEX, RGB, RGBA side by side.

Brand audits

Quickly normalize colors picked from screenshots, PDFs, and Slack threads.

Tooling

Feed RGB tuples into image processing scripts, theming engines, or chart libraries.

Step by step

How to convert HEX to RGB

1

Paste your HEX list

One per line, or separated by spaces / commas. # is optional. 3, 6, and 8-digit forms are all accepted.

2

Pick format

Standard rgb(), rgba() with alpha, or bare comma-separated channels for code that wants integers.

3

Click Convert

Or leave auto-convert on for live updates. Runs entirely in your browser — no upload.

4

Copy or download

Copy to clipboard or save as .txt. Or jump to RGB to HEX for a round-trip check.

FAQ

Frequently asked questions

Three-digit shorthand (#rgb), six-digit (#rrggbb), and eight-digit with alpha (#rrggbbaa). The leading # is optional. Case-insensitive.

Yes. Paste one HEX per line, or separate them with spaces or commas. Each is converted independently and emitted on its own line in the output.

Yes. No signup, no limits, no ads. Runs entirely in your browser.

Eight-digit HEX (#rrggbbaa) carries an alpha channel as the last byte (0–255). It's emitted as rgba(r, g, b, a) with alpha normalized to 0–1. Six-digit HEX has no alpha — it becomes rgb() or rgba(..., 1) depending on format choice.

Use RGB to HEX for the opposite direction. Or Color Picker if you want every format at once.

About

About RGB and HEX

HEX (#3B82F6) and RGB (rgb(59, 130, 246)) describe the exact same color — they're two notations for the same three numbers. HEX uses base-16 (two hex digits per channel, 0–255), and RGB uses decimal. Converting between them is purely lexical: parse each pair, output as integer.

When to use RGB over HEX

  • Transparencyrgba(r, g, b, a) carries alpha. HEX has the 8-digit form but tooling support is weaker.
  • Programmatic colors — interpolating, lightening, or mixing channels is easier with integer R, G, B values.
  • Older Android / Tailwind opacity utilities often expect RGB triples for runtime alpha composition.

Eight-digit HEX

Modern CSS supports #rrggbbaa — the last byte is alpha 0–255 (0 = transparent, 255 = opaque). All major browsers since 2019. This tool parses it correctly and emits rgba() with the normalized 0–1 alpha.

Related

Related tools