HEX to RGB
Convert a HEX color code into its RGB equivalent, with an instant color preview.
How to use HEX to RGB
- Enter a HEX color code, such as
#ff6347or the shorthand#f00. - Click "Convert to RGB" to see the equivalent
rgb(r, g, b)value and a live color swatch. - Copy the RGB value for use in CSS, design tools, or code.
Why use this tool
HEX and RGB both describe the same colors but are used in different contexts — HEX is compact and common in CSS and design tools, while RGB is often easier to read and manipulate programmatically. This tool converts between them instantly in your browser.
Frequently Asked Questions
Does this support 3-digit shorthand HEX codes?
Yes, both 3-digit (#f00) and 6-digit (#ff0000) HEX codes are supported.
Does it support alpha/transparency?
Not currently — this tool converts standard 6-digit RGB HEX codes without an alpha channel.