OpenReplay Logo
12k
12k

RGB to HEX converter

Convert RGB color values to hexadecimal. Adjust the channels and copy the result — conversion runs in your browser.

HEX result
#394dfe

About this tool

RGB defines a color by its red, green and blue channels (0–255). HEX packs the same color into a six-digit hexadecimal string — the format most used in CSS, design tools and code.

Use it to move colors between design tools and stylesheets, or to normalize formats across a codebase.

Conversion happens locally — colors you paste never leave your browser.

Frequently asked questions

What's the difference between RGB and HEX?

None in the color itself — they are two notations for the same sRGB value. rgb(57, 77, 254) and #394dfe describe the identical color.

Does it support alpha?

This tool converts opaque colors. For transparency, use the RGBA to HEX converter.

Can HEX values be written shorter?

This tool always outputs full six-digit hex. CSS also allows a three-digit shorthand (#39f) when each channel's two digits repeat, but the long form is universally safe and is what you get here.