RGB to HEX color converter

Convert a RGB color to HEX with a live color preview. Paste a CSS value such as rgb(255, 0, 0), or enter the channels separately. Copy the converted value in one action.

Enter your color

Paste rgb(255, 0, 0) or rgb(255 0 0), or edit the channels below. Use whole numbers from 0 to 255.

Enter whole numbers from 0 to 255 for each channel.

About this conversion

The preview and converted value update as you type. RGB and HEX use 8-bit sRGB channels; percentages and hue are rounded to two decimal places. These converters handle opaque colors.

Example: convert red from RGB to HEX

rgb(255, 0, 0) converts to #FF0000. These values describe the same opaque screen color in different formats.

More Color Tools