RGB to HEX Converter

Advertisement

Inputs

Result

Enter R, G, B values (0–255) to get HEX.
Advertisement

What does this RGB to HEX converter convert?

Enter three numbers — red, green, blue, each 0 to 255 — and get the corresponding HEX color code that you can paste into CSS, Figma, Photoshop or anywhere.

How conversion works

Each RGB component (0–255 decimal) is converted to a two-digit HEX (00–FF). The three pairs join into #RRGGBB.