HEX to RGB Converter
Convert any HEX color to RGB in your browser. No signup, no tracking — and below, the math behind the conversion.
Example conversion
HEX
#3B82F6
RGB
rgb(59, 130, 246)
How the conversion works
Split the 6-character hex into three 2-character pairs. Parse each pair as a base-16 number (0–255). That's R, G, B. `#3B` = 59, `82` = 130, `F6` = 246. Modern CSS accepts hex directly — most projects only convert when interfacing with code that needs numeric channels.
Convert any color, not just this one
Open the full color picker to pick any color visually and see it in HEX, RGB, HSL, and OKLCH at the same time. The picker also generates palettes (complementary, analogous, triadic, monochromatic) you can copy with one click.