G
GamutDesk

HEX to RGB Code Converter

Convert hex color codes (#RRGGBB) to decimal integer rgb(r, g, b) tuples instantly with channel breakdowns.

100% Client-SideZero Data Collection
#2563EB
CSS RGB String
rgb(37, 99, 235)
Normalized Float (0.0 - 1.0)
rgb(0.145, 0.388, 0.922)
Red (R)
37
0x25
Green (G)
99
0x63
Blue (B)
235
0xEB

Technical Specification & Mathematical Principles

Hexadecimal numbers use base-16 digits 0-9 and A-F. A 6-character hex code decomposes into three 8-bit pairs: #RRGGBB.

Each channel is parsed using base-16 radices: Red = parseInt(RR, 16), Green = parseInt(GG, 16), and Blue = parseInt(BB, 16), yielding values from 0 to 255.

Frequently Asked Questions

Each pair of hexadecimal digits corresponds to an 8-bit byte (00 to FF). The first digit is multiplied by 16 and added to the second digit: Red = (16 * first) + second.

Related Design & Color Instruments