Hex to RGB Converter
Paste a hex code and get the RGB triple. The two notations describe exactly the same color, hex is base 16, RGB is base 10, so this conversion is lossless in both directions.
How the conversion works
A six-digit hex code is three pairs of hexadecimal digits, one per channel. Each pair is a number from 00 to FF, which is 0 to 255 in decimal.
Split the code into pairs and convert each from base 16 to base 10. A hex digit's value is its position weight times its digit value: the first digit is worth 16 each, the second 1 each.