RGB to HEX
Convert RGB color values to a HEX code instantly, with a live color preview — free, fast and private.
Enter RGB values to convert.
How to use RGB to HEX
- Enter the red, green and blue values (0-255 each).
- Click Convert to HEX.
- See the HEX code plus a preview swatch.
- Copy the HEX code for your code.
Note: this tool runs in your browser. Nothing is uploaded.
Frequently Asked Questions
What range can each value be?
Each of R, G and B must be a whole number from 0 to 255. Out-of-range values show an error.
Why use HEX instead of RGB?
HEX is shorter and is the standard in most CSS and design tools. Both describe the exact same color.
Can I convert the other way?
Yes — use the HEX to RGB tool on ToolHub.
Is my data uploaded anywhere?
No. The conversion runs entirely in your browser.