Skip to content

HEX to RGB Converter

Convert HEX color codes to RGB values instantly.

#
r37
g99
b235

About this conversion

HEX color codes are the standard way to specify color on the web. A six-digit hexadecimal string like #FF5733 encodes red, green, and blue channels in pairs of two hex digits (00–FF). Shorthand three-digit codes like #F53 expand to #FF5533 by doubling each digit.

RGB notation, on the other hand, expresses the same information as three decimal integers from 0 to 255. Many design tools, animation libraries, and CSS functions like rgb() require decimal values rather than a hex string, making HEX-to-RGB conversion an everyday task for front-end developers and designers.

This tool accepts both three-digit and six-digit hex codes, with or without the leading hash. It validates the input in real time and shows you the exact R, G, and B values along with a live color preview, so you can paste a code from any source and immediately get usable numbers.

Test your colors in print

After converting your colors, print a test page to verify they look correct on paper:

Color conversions are mathematical approximations. For critical color work, verify against physical swatch books and printed proofs. See our full disclaimer.