RGB to HEX Converter

Convert RGB to HEX as you type — free, instant, with a worked example and a common-colors chart.

Type a RGB value and read the HEX value below it, or pick a color from the swatch.

Pick a color or type a value in any format.

Worked example

RGB 255, 87, 51 = HEX #ff5733

255 → ff · 87 → 57 · 51 → 33

How the conversion works

  • A HEX code is the same three RGB channels written in base-16: two digits per channel, from 00 (0) to ff (255).

Common colors in RGB and HEX

ColorRGBHEX
Red255, 0, 0#ff0000
Orange255, 165, 0#ffa500
Yellow255, 255, 0#ffff00
Green0, 128, 0#008000
Cyan0, 255, 255#00ffff
Blue0, 0, 255#0000ff
Purple128, 0, 128#800080
Pink255, 192, 203#ffc0cb
Brown165, 42, 42#a52a2a
White255, 255, 255#ffffff
Gray128, 128, 128#808080
Black0, 0, 0#000000

Every conversion runs in your browser. Nothing you enter is uploaded to BroBroGo.

FAQ

How do I convert RGB to HEX?

Type or paste your RGB value above — the HEX value updates as you type. You can also pick the color visually with the swatch.

Is the conversion exact?

Yes — HEX and RGB are the same three channels written differently, so converting between them is exact in both directions.