◉Color Tools

HEX to RGB Converter

Convert hex colors to RGB and RGB colors to hex instantly.

Translate colors between #RRGGBB and rgb(r, g, b) notation with a live swatch preview. Shorthand hex values such as #fff are accepted, and invalid input is reported clearly. All conversion happens locally in your browser.

Live preview

Enter a valid color

Use a 3- or 6-digit hex color such as #1e40af.
Private by design — your input is processed in your browser and is never uploaded.

How to use HEX to RGB Converter

  1. 1Choose whether you are converting from HEX or RGB.
  2. 2Enter a color value or load the example.
  3. 3Copy the converted value from the result panel.

About this tool

Translate colors between #RRGGBB and rgb(r, g, b) notation with a live swatch preview. Shorthand hex values such as #fff are accepted, and invalid input is reported clearly. All conversion happens locally in your browser.

Looking for more utilities? Browse all tools or explore Color Tools.

Frequently asked questions

Which hex formats work?+

Three-digit shorthand like #fff and six-digit values like #1e40af both work. The leading # is optional.

Does it support rgba and opacity?+

The output is always six-digit hex, so alpha channels are not preserved. Use rgb() input without opacity for best results.

Is the color sent anywhere?+

No. The conversion and preview run entirely in your browser.