HEX to RGB
Read the three decimal channels of an opaque CSS color from its short hex form.
Read the three decimal channels of an opaque CSS color from its short hex form.
How to use
- Enter #3A7 with the leading #.
- Convert the color to RGB and read the channels in red, green and blue order.
- Check the conversion independently by expanding #3A7 to #33AA77 and reading each pair in decimal.
Worked example
Input
#3A7Expected result
rgb(51, 170, 119)Check the result
Those pairs give 51, 170 and 119, matching the CSS result.