HEX ↔ RGB

Calculate HEX ↔ RGB instantly with the exact formula and a worked example.

HEX ↔ RGB

R
G
B
Decimal color code
2,003,199
Calculate HEX ↔ RGB instantly with the exact formula and a worked example.
HEX
#1E90FF
Short form
—
rgb()
rgb(30, 144, 255)

More about: HEX ↔ RGB

What it calculates

The “HEX ↔ RGB” calculator computes Decimal color code from 3 parameters: r, g, b.

A converter between units of measure, currencies, and sizes.

Example calculation

With parameters R = 30, G = 144, B = 255 the result is 2,003,199.

How to use

  1. Enter r, g and b — each field above is adjustable with a slider.
  2. Decimal color code is calculated automatically as you type.
  3. Check the worked example below to see the formula applied to real numbers.
  4. Copy the result or bookmark this calculator.

Related calculators

FAQ

How is HEX ↔ RGB calculated?
The HEX ↔ RGB calculator computes Decimal color code from r, g, b. Enter your values above and the exact formula is applied instantly; a worked example with real numbers is shown below.
Is the HEX ↔ RGB calculator free?
Yes. It is completely free, needs no signup, runs entirely in your browser, and sends no data to any server.

More calculators in this category

Explore related free tools

DIN ↔ ISO ThreadsScrew Pitch (TPI)Days ↔ Hours ↔ MinutesRGB ↔ HSLRGB ↔ HSVHEX ↔ CMYKCIE LabColor Contrast (WCAG)Reverse TextMirror TextInches → Feet → YardsApothecary Weight