Hex to RGB Converter | Convert Hex to RGB/RGBA with Live Preview
Last updated: June 2026 · Free · No sign-up required
Quick reference
| HEX | RGB |
|---|---|
| #FFFFFF | 255, 255, 255 |
| #000000 | 0, 0, 0 |
| #3B82F6 | 59, 130, 246 |
| #22C55E | 34, 197, 94 |
| #7F00FF | 127, 0, 255 |
info Hex to RGB Converter
Free color tools calculator — enter your numbers and get an instant, accurate result.
info Private by design
Everything runs locally in your browser. No uploads, no accounts, no tracking.
info Works everywhere
Fully responsive and mobile-friendly — calculate on any device, any time.
info Educational
Includes the formula and step-by-step explanation so you understand the math, not just the answer.
Interpretation guide
| Hex digit | Decimal |
|---|---|
| 0–9 | 0–9 |
| A | 10 |
| B / C / D | 11 / 12 / 13 |
| E / F | 14 / 15 |
lightbulb Worked example
Result: The calculator instantly applies the formula Channel = first hex digit x 16 + second hex digit; e.g. B2 = 11 x 16 + 2 = 178 and returns the result with appropriate precision.
What this means: Read the result in the context of what you are measuring. The step-by-step breakdown lets you confirm the math and understand which input most affects the outcome.
Formula & methodology
Formula: Channel = first hex digit x 16 + second hex digit; e.g. B2 = 11 x 16 + 2 = 178
The Hex to RGB Converter is built on a well-established calculation method. It uses the formula Channel = first hex digit x 16 + second hex digit; e.g. B2 = 11 x 16 + 2 = 178 to turn your inputs into a reliable result. A free tool for developers and designers to convert Hexadecimal color codes to RGB/RGBA formats instantly. Features a live color preview and click-to-copy values. The steps are shown on the page so you can follow the reasoning from input to output.
How HEX converts to RGB
A HEX color is three base-16 pairs — red, green, blue. Convert each pair to a 0-255 decimal: multiply the first digit by 16 and add the second.
Example: #3B82F6
- Red 3B = 3 x 16 + 11 = 59
- Green 82 = 8 x 16 + 2 = 130
- Blue F6 = 15 x 16 + 6 = 246
So #3B82F6 = rgb(59, 130, 246). To reverse it, convert each 0-255 value to two hex digits (e.g. 130 → 82) and concatenate with a leading #.
Authoritative source: W3Schools Colors
Frequently asked questions
Explore the full unit converter toolkit
Every CalcaTools converter — length, volume, weight, time and date, number notation, science and energy, plus file, text and colour utilities — each with instant results and worked explanations.
Length & distance
Volume, weight & capacity
Time & date
- Military Time Converter | Convert 24-hour and 12-hour time
- Time Zone Converter | Convert Between Major World Time Zones
- Timestamp Converter | Convert Unix Epoch to Readable Dates
- Time to Decimal | Convert Hours to Decimal for Payroll
- Months To Weeks Converter | Convert Months Into Weeks
- Years To Months Converter | Convert Between Years And Months
Numbers & notation
- Scientific Notation Calculator | To/from scientific notation
- Roman Numeral Converter | Convert between numbers and Roman numerals
- Fraction To Decimal Calculator | Handle repeating decimals
- Fraction To Percent Calculator | Convert Fractions To Percentages
- APR to APY Converter | Convert APR to APY by compounding