RGB to HEX Converter
Type an rgb() value or use the individual R, G, B fields below. The HEX equivalent updates as you type.
HEX
HSL
How RGB to HEX Works
Each RGB channel (0–255) is converted to a two-character hexadecimal string. Values below 16 are zero-padded. The three hex pairs are concatenated with a leading #:
rgb(255, 87, 51) → R: ff, G: 57, B: 33 → #ff5733