All toolsDisplay
HEX and RGB converter
Convert a HEX color to RGB or the other way around.
Test panel
Questions about HEX and RGB converter
Does the HEX converter accept shorthand colors such as #abc?
Yes. The converter expands #abc to #aabbcc, which is RGB 170, 187, 204. Three- and six-digit input can be entered with or without the leading #.
Which RGB channel values can I enter?
Use whole numbers from 0 to 255 for red, green and blue. For example, RGB 255, 128, 0 becomes #ff8000.
Can the HEX and RGB converter preserve transparency?
The converter works with three opaque sRGB channels. It accepts three or six HEX digits and has no input for alpha.