Skip to content
Jellykit

HEX to RGB

Convert a HEX colour code like #a824c4 to RGB values instantly, plus HSL, HSV and CMYK. Pick a colour or paste a code. Free hex to rgb converter for CSS.

Runs in your browser. Nothing is uploaded.

About HEX to RGB

A HEX colour code is just three numbers written in base 16: the first two digits are red, the next two green and the last two blue. #a824c4 means red 168, green 36 and blue 196. This converter does that maths for you.

Paste a code with or without the #, use the short three-digit form (#fff), or pick a colour visually. You also get HSL, HSV, CMYK, the nearest CSS colour name and whether white or black text reads better on it.

How to use HEX to RGB

  1. Enter your values in the fields.
  2. The answer updates instantly as you type.
  3. Press Copy result to save the breakdown.

Frequently asked questions

How do I convert hex to RGB by hand?

Split the code into pairs and convert each from base 16: a8 = 10×16 + 8 = 168. Repeat for green and blue.

What about 8-digit hex codes?

The last two digits are the alpha (opacity). The converter reads them and shows an rgba() value.

Is HEX to RGB free and private?

Yes. HEX to RGB is completely free with no sign-up. Everything runs in your browser, so whatever you type or paste never leaves your device.

See all design tools →