RGB to HEX
Convert RGB values (0–255) into a HEX color code.
Conversion runs locally in your browser.
What is rgb to hex?
Enter red, green, and blue channel values from 0 to 255 and get the matching HEX code, ready to paste into CSS or a design tool. A live swatch shows the color as you type.
Out-of-range or non-numeric channels are flagged instead of silently clamped, so you always know what you are copying.
How to use it
-
Enter R, G, B values
Whole numbers from 0 to 255.
-
Copy the HEX
The code appears next to the preview swatch.
Examples
A familiar indigo
Common channel values map to a tidy code.
79, 70, 229
Result: #4f46e5
Frequently asked questions
Each RGB channel is one byte, giving 256 possible intensities from 0 (none) to 255 (full).