Converting Hex to RGB is an easy task. First, you need to find the hex code for the color you want to convert. Hex codes will typically look like this # FF0000 or #000000, and the first two digits correspond to the amount of Red, the second two the amount of Green, and the last two the amount of Blue. You can then convert this to RGB or Red, Green and Blue, by taking the first two digits and dividing by 255. For example if your hex code is #FF0000, the red value is (255/255)=1; and the green and blue values are both 0. So the RGB value for this hex code would be (1, 0, 0). If you are familiar with hexadecimal coding, then you could calculate the RGB values manually by subtracting and converting the hexadecimal values to their corresponding decimals. For example, if your hex code is #FF0000, then subtracting the first two digits (FF) by F yields 0 and the remaining value is 0; this is the same as (255/255) which is 1. You do the same for the second and third sets of two digits for green and blue.
Once you have the RGB values, you can specify the color in HTML or CSS by writing "rgb(x, y, z)", with x, y and z corresponding to the decimal values of Red, Green and Blue, respectively.