Hex to RGB
Convert HEX color codes to RGB and vice versa
Enter HEX or RGB values to convert
About This Tool
Hex to RGB Converter is a free online tool that converts between HEX color codes and RGB values. HEX codes (like #FF5733) are commonly used in web design and CSS, while RGB values (like rgb(255, 87, 51)) are used in various design and development contexts including canvas operations, image processing, and graphical programming. This tool converts in both directions and provides a live color preview along with CSS-ready code snippets. Being able to quickly switch between color formats is essential for web designers, frontend developers, and graphic designers who frequently work with color values across different platforms, design tools, and programming frameworks. All processing happens in your browser — your colors are never sent to any server.
How to Use
- Enter a HEX color code (e.g., #FF5733) to convert it to RGB.
- Or enter RGB values (e.g., 255, 87, 51) to convert to HEX.
- The color preview updates automatically as you type.
- Copy the CSS-ready color code from the output.
- Use the color picker to select colors visually.