Hex to RGB
Enter a hex color code and convert it to RGB values. See a live color preview and generate random colors.
Hex Color
Enter a hex code like
#FF5733 or #F00
RGB Value
Result will appear here
Preview
Hex to RGB Converter
This tool converts hexadecimal color codes into their RGB (Red, Green, Blue) decimal equivalents. It includes a live color preview so you can see exactly what the color looks like. The random color button generates a new color each time.
The conversion runs entirely in your browser. Enter a hex code with or without the # prefix.
How to use
- Enter a hex color code in the input field (e.g.
#FF5733orFF5733). - Click Convert to see the RGB values and color preview.
- Click Random to generate a random color.
- Use Copy to copy the RGB value to your clipboard.
What is hex color?
A hex color code is a 6-digit hexadecimal number that represents the red, green, and blue components of a color. The first two digits are red, the middle two are green, and the last two are blue. For example, #FF0000 is pure red (R=255, G=0, B=0).
Example
Hex: #FF5733 RGB: rgb(255, 87, 51) Hex: #00FF00 RGB: rgb(0, 255, 0) Hex: #3366CC RGB: rgb(51, 102, 204)