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
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
- Enter r, g and b — each field above is adjustable with a slider.
- Decimal color code is calculated automatically as you type.
- Check the worked example below to see the formula applied to real numbers.
- 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