HEX to RGB Converter
Convert HEX color codes to RGB and back — with a live color preview. Supports all 16.7 million web colors.
Reviewed October 7, 2026 Runs in your browser — inputs are never stored
RGB values
rgb(59, 130, 246)
This tool provides general unit conversions for everyday and educational use. For regulated, legal, or scientific applications, verify conversion factors against the applicable official standard.
About the HEX to RGB Converter
The HEX to RGB converter splits a six-digit hex colour code into its red, green and blue values from 0 to 255, and converts RGB values back to hex. Each pair of hex digits is one channel: #FF0000 is pure red. A live preview shows the colour.
How to use it
- 1Choose HEX → RGB or RGB → HEX.
- 2Enter the colour.
- 3Read the converted value and check the preview.
- 4Copy, share or print the result with the buttons below it.
Worked example
#3B82F6 → R = 0x3B = 59, G = 0x82 = 130, B = 0xF6 = 246.
How it works
Formula
HEX #RRGGBB: each pair = 2 hex digits → decimal 0–255. Example: #FF0000 → R=255, G=0, B=0 (red).
Common use cases
- Using colours in CSS and design apps
- Converting brand guidelines
- Programming graphics
Frequently asked questions
A:FF5733 = rgb(255, 87, 51) — a warm orange-red.
A:Yes, shorthand #RGB expands to #RRGGBB: #F0A = #FF00AA.
Reviewed for accuracy · Last updated October 7, 2026
Conversion factors are based on internationally defined SI units and standard metric/imperial equivalence tables.
CalcWisee Editorial Team
Calculator development and formula review
CalcWisee is an independent site founded by Ayman. Every calculator is built from a published formula or official definition, tested against hand-worked examples before it goes live, and corrected promptly when a reader reports an issue to ayman@calcwisee.com.
Expertise: Financial mathematics, Health and fitness formulas, Applied mathematics, Unit conversion standards
References & sources


