Tested tool guide
Tested browser tools
Checked August 16, 2026
What HEX to RGB / RGBA Converter does, with a checked example
HEX to RGB / RGBA Converter translates a hexadecimal color such as #336699 into separate red, green, and blue channel values, then adds a selected opacity for RGBA output and previewing. Each two-character HEX pair becomes one decimal channel from 0 to 255. The common surprise is that opacity does not change those three channels. It adds an alpha value, so the visible result can differ depending on the color behind it.
Worked example
A concrete input and expected output from the current implementation.
Input
HEX: #336699
Opacity: 50%
->
Expected output
RGB: rgb(51, 102, 153)
RGBA: rgba(51, 102, 153, 0.5)
The pairs 33, 66, and 99 equal 51, 102, and 153 in decimal. An opacity of 50% becomes an alpha value of 0.5, while the RGB channels remain unchanged.