When using color on Web pages, you might prefer to use hex codes, but many graphics programs describe colors as RGB.
It’s simple to convert an RGB code into a hexadecimal triplet for your Web page.
Open the Widows Calculator found under Accessories.

- Choose an RGB color you would like to convert. For example, a pale turquoise in RGB is 175,238,238.
- Open the calculator, and in the view menu, change it to Scientific.
- Make sure that the “Dec” radio button is selected.
- Enter the first number in the RGB code into the calculator. In this example, that would be 175.
- Click on the “Hex” radio button.
- Record the code that appears as your first two digits of your hex-triplet. In this example, that would be af.
- Repeat with the two remaining RGB codes. For my example, I get ee and ee again. My resulting hexadecimal code is #afeeee.