How to Use the HEX to RGB Converter
- Type or paste a HEX color code (with or without the leading #).
- The equivalent RGB value appears instantly, along with a live preview.
- Copy the RGB value for use in your CSS or design tool.
How HEX maps to RGB
A HEX color code has three pairs of hexadecimal digits, one each for red, green, and blue. Each pair is a base-16 number from 00 to FF, which corresponds to a base-10 value from 0 to 255 — the same range used in RGB notation. For example, #FF the red pair FF in hex equals 255 in decimal, the maximum red intensity.
Why convert between them
Some tools and codebases expect RGB values (or rgba() with transparency) rather than HEX, particularly when doing programmatic color manipulation like blending or adjusting opacity, where working with separate numeric channels is more convenient than a packed hex string.
Example
#FF5733
rgb(255, 87, 51)
Tips
- Shorthand HEX codes like #F53 expand to #FF5533 — each digit is duplicated.
- RGB values are always whole numbers between 0 and 255 for each channel.
Frequently Asked Questions
What does a shorthand HEX code like #FFF mean?
Each digit is duplicated to form the full code, so #FFF is equivalent to #FFFFFF (white).
Can I convert RGB back to HEX?
Yes — use the full Color Converter tool, which converts between HEX, RGB, and HSL in both directions.