RGB to HEX Converter

Convert any RGB color to its hex code.

38
125
112
HEX
#267D70

How it works

Each RGB channel (0–255) is converted to a 2-digit hex string and combined. For example, rgb(255, 0, 0) → FF + 00 + 00 = #FF0000.

FAQ

Can I use RGB values outside 0–255?

Values are clamped to 0–255 for display purposes.

Related tools