Enter 6 digits hex color code and press the Convert button:
Enter a 6-digit HEX color code, such as #1D9D73, and press Convert. The tool shows the Red (R), Green (G), and Blue (B) values, the CSS color, and a color preview.
A HEX code has three pairs of characters for red, green, and blue. Each pair is converted from base 16 to a number between 0 and 255. For example, #1D9D73 becomes: 1D = 29, 9D = 157, and 73 = 115, which gives rgb(29, 157, 115).
This tool gives you the RGB values. For a see-through color in CSS, add a fourth value between 0 (fully transparent) and 1 (fully solid), for example rgba(29, 157, 115, 0.5).
This tool asks for 6 digits. Write the short code in full first, so #F00 becomes #FF0000.
Yes, it is free to use. To convert in the other direction, try our RGB to Hex Converter.