Hex to RGB Color Converter

Enter 6 digits hex color code and press the Convert button:



About Hex to RGB Color Converter

Hex to RGB Color Converter: Convert HEX Color Codes to RGB

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.

How to Use the Tool

  1. Type your 6-digit HEX code into the box, for example #1D9D73.
  2. Press Convert.
  3. Read the R, G, and B values and look at the color preview.
  4. Press Copy RGB Code to copy the result, or Reset to start again.

How HEX Becomes RGB

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).

Need Transparency?

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).

Frequently Asked Questions

Can I enter a 3-digit code like #F00?

This tool asks for 6 digits. Write the short code in full first, so #F00 becomes #FF0000.

Is this tool free?

Yes, it is free to use. To convert in the other direction, try our RGB to Hex Converter.