RGB to HEX
Convert RGB colors to HEX instantly. Type a RGB value such as rgb(59, 130, 246) or use the color picker, and copy the HEX result — along with HEX, RGB, HSL, HSV and CMYK equivalents.
This tool runs entirely in your browser.
How to use the RGB to HEX
- 1Enter a RGB color (for example rgb(59, 130, 246)) or pick one with the color picker.
- 2Read the HEX value — it updates as you type.
- 3Click Copy next to any format.
What is the RGB to HEX?
RGB writes a color as three numbers from 0 to 255 for red, green and blue light, e.g. rgb(59, 130, 246).
HEX codes write a color as #RRGGBB — two hexadecimal digits each for red, green and blue (00–FF).
All three are different ways of writing the same sRGB color, so converting between them never changes how the color looks.
Frequently asked questions
Can I enter RGB without the usual syntax?
Yes — plain numbers separated by commas or spaces work, e.g. 59, 130, 246.
Is alpha (transparency) supported?
Yes. 8-digit HEX (#RRGGBBAA), rgba() and hsla() values keep their alpha channel.
Is the RGB to HEX free and private?
Yes. The RGB to HEX is free, needs no account, and runs entirely in your browser. What you type is never sent to a server or stored.
