FlippyFile

HEX to RGB Converter

Convert color codes between HEX and RGB instantly with a live preview.

Enter a HEX color code and see the RGB values instantly, with a live color preview and one-click copy buttons.

HEX and RGB are the two most common ways to specify colors in digital design. HEX codes (#RRGGBB) are the standard in CSS, HTML, and most design tools like Figma and Sketch. RGB values (rgb(R, G, B)) are used in programming, image processing, and some print workflows.

This tool converts instantly in both directions. Type a HEX code to get the RGB values, or enter RGB values to get the HEX code. The live color swatch updates as you type so you can visually confirm the color is correct.

Both 3-digit shorthand HEX codes (#FFF) and 6-digit full codes (#FFFFFF) are supported. The output is always the full 6-digit format for maximum compatibility with CSS and design tools.

How to use HEX to RGB Converter

  1. Step 1: Type a HEX color code (e.g. #FF5733) into the HEX field to instantly see the RGB equivalent, or enter R, G, and B values (0–255) to instantly see the HEX code.
  2. Step 2: A live color swatch shows you the color in real time as you type.
  3. Step 3: Click the copy button next to any value to copy it to your clipboard.

Frequently Asked Questions

What formats are supported?

3-digit (#FFF) and 6-digit (#FFFFFF) HEX codes. RGB values from 0–255.

Can I convert RGB to HEX?

Yes. The tool converts in both directions — enter HEX to get RGB, or enter RGB values to get the HEX code.

Related Tools