HEX to RGB Converter
Convert hexadecimal color codes to RGB (Red, Green, Blue) values with this simple tool.
Enter HEX Color Code
How to use this tool:
- Enter a HEX color code in the input field (with or without #)
- Click the Convert button to see the RGB values
- View the color preview and individual RGB values (Red, Green, Blue)
- Use the Copy button to copy the RGB format
- Click Generate Random Color to try different colors
- Recent conversions are saved at the bottom for quick access
Please enter a valid HEX color code.
RGB Color Values
.my-element {
background-color: #4a90e2;
background-color: rgb(74, 144, 226);
}
Recent Conversions
About HEX and RGB Colors
HEX Color Format
Hexadecimal color codes are used in HTML, CSS, and other applications to represent colors. They start with a # followed by 6 hexadecimal digits (0-9, A-F). The first two digits represent red, the middle two represent green, and the last two represent blue.
RGB Color Format
RGB (Red, Green, Blue) is a color model that represents colors by specifying the intensity of red, green, and blue components. Each component ranges from 0 to 255, where 0 means no intensity and 255 means full intensity.