HEX to RGB Converter

Convert HEX color codes to RGB format.

Frequently Asked Questions

A HEX color code is a 6-digit hexadecimal number representing the red, green, and blue components of a color. For example, #FF5733 means R=255, G=87, B=51.

Split the HEX code into three pairs (RR, GG, BB) and convert each pair from hexadecimal to decimal. For example, FF = 255, 57 = 87, 33 = 51.

Yes. The output is in the format rgb(R, G, B) which is valid CSS syntax.

Transparency is not part of standard HEX (#RRGGBB). For transparency, use 8-digit HEX (#RRGGBBAA) or RGBA format. #00000000 is fully transparent black.

Yes. 3-digit HEX (#RGB) is shorthand for 6-digit HEX. Each digit is doubled: #F5A becomes #FF55AA.

Pure red is RGB(255, 0, 0). Pure green is RGB(0, 255, 0). Pure blue is RGB(0, 0, 255).

In Photoshop, use the Color Picker (double-click the foreground colour) or the Eyedropper tool to sample a colour and read its RGB values.