HEX to RGB Converter

Quickly translate colors between HEX and RGB formats.

HEX code
Updates as you type

The RGB values update as you type.

RGB values
Red
Green
Blue

HEX to RGB and RGB to HEX

Type a HEX code to get RGB, or RGB values to get HEX.

Live colour preview

A colour swatch shows the colour as you type.

Checks every value

Invalid codes are flagged straight away, with a short hint.

HEX to RGB FAQ

What is the difference between HEX and RGB?

HEX is a hexadecimal representation of color, compact and common in web development. RGB uses three separate channels (Red, Green, Blue) each with 256 levels of intensity, offering a more logical model for programatic color manipulation.

Does it accept 3-digit HEX codes?

Yes. A 3-digit code such as #fff is the short form of #ffffff, and both work.

How to use the HEX to RGB

  1. Type a HEX code, or the red, green and blue values.
  2. See the other format and the preview update.
  3. Copy the value.

Questions and answers

Is it free?

Yes. The tool is free to use and needs no account or sign-up.

Does it accept short HEX codes like #fff?

Yes. Three-digit codes are expanded, so #fff becomes rgb(255, 255, 255).