Convert any HEX color code to its RGB value instantly — paste a hex code like #0F0D72 and get the exact rgb(r, g, b) equivalent, no signup required.
How It Works
A HEX color splits into three pairs of digits — one each for red, green, and blue — and each pair is a base-16 number from 00 to FF. Converting to RGB just means reading each pair as a decimal value from 0–255. For example, #0F0D72 breaks into 0F, 0D, and 72, which convert to 15, 13, and 114 — giving rgb(15, 13, 114). Shorthand hex codes like #FFF work the same way, just with each digit doubled first (F becomes FF) before conversion.
FAQ
How do you convert hex to RGB?
Split the hex code into three two-digit pairs (red, green, blue), then convert each pair from base-16 to a decimal number between 0 and 255. #FFC502, for instance, converts to rgb(255, 197, 2).
Does this tool work with 3-digit hex shortcuts like #FFF?
Yes. Shorthand hex codes are expanded automatically — each digit is doubled (F becomes FF) before the RGB conversion runs, so #FFF and #FFFFFF return the same result.
What is HEX to RGB conversion used for?
RGB values are needed anywhere a tool or codebase expects color as three separate numeric channels instead of a hex string — common in rgba() CSS for transparency, canvas/JS color manipulation, and design tools. In WordPress specifically, theme customizer color pickers and page builder color fields sometimes store or export colors as RGB rather than hex, so this conversion comes up often when matching brand colors across a site.
