HEX to RGB

Convert HEX color codes to RGB values instantly. For web design and development.

About this tool

HEX and RGB are the two most common color formats in web design and development. HEX codes (like #FF5733) are compact and widely used in HTML and CSS. RGB values (like rgb(255, 87, 51)) make it easier to understand how much red, green, and blue are in a color, and are required by many design tools, APIs, and programming libraries. This converter handles both 3-digit (#FFF) and 6-digit (#FFFFFF) HEX codes.

  • ✅ Free to use, no sign-up required
  • ✅ Files never leave your device
  • ✅ Instant conversion
  • ✅ Works on any browser and device

How it works

A HEX color code encodes three color channels — red, green, and blue — as pairs of hexadecimal digits. Each pair is converted from base-16 to a decimal number between 0 and 255. For example, #FF5733 decodes as: R=FF (255), G=57 (87), B=33 (51). 3-digit HEX codes like #F53 are expanded to 6-digit equivalents (#FF5533) before conversion.

Frequently Asked Questions

What is the difference between HEX and RGB color formats?
Both represent the same colors — they are just different notations. HEX is a base-16 compact notation used heavily in CSS and HTML. RGB is a decimal notation that makes it easier to see the exact red, green, and blue intensity values on a 0–255 scale.
What does #000000 convert to in RGB?
#000000 is pure black, which converts to rgb(0, 0, 0) — zero intensity on all three channels.
What does #FFFFFF convert to in RGB?
#FFFFFF is pure white, which converts to rgb(255, 255, 255) — maximum intensity on all three channels.
Can I convert a 3-digit HEX code like #FFF?
Yes. 3-digit HEX codes are shorthand where each digit is doubled — #FFF expands to #FFFFFF, and #F53 expands to #FF5533. This converter handles both formats.

Related Tools