RGB to HEX Converter

RGB and HEX represent the same sRGB color. HEX is the format used in HTML and CSS; RGB is more common in design tools and image processing.

How RGBHEX works

Convert each channel (0–255) to a two-digit hexadecimal string and concatenate them. R=255, G=127, B=80 → #FF7F50.

When to use HEX

Use HEX when writing CSS or HTML — it's the most compact and widely supported color format on the web.

Convert any RGB on your Mac

Colorframe shows you RGB, HEX, and every other format side-by-side as you pick. Copy any with one click.