RGB to Hex
Enter red, green and blue channel values (0–255) to generate the matching Hex code.
Each channel must be a whole number between 0 and 255.
Switch between RGB and Hex color codes instantly, copy either result and view a live preview of the shade.
Enter red, green and blue channel values (0–255) to generate the matching Hex code.
Each channel must be a whole number between 0 and 255.
Paste a 3- or 6-digit Hex color to see the RGB representation.
Use #RRGGBB or #RGB format. Letters are case-insensitive.
This converter changes RGB channels into a Hex color code and converts Hex values back to RGB. A live preview displays the calculated color in the browser.
A Hex code is a compact representation of RGB values and is commonly used in CSS, HTML, and design systems.