HEX to RGB Converter

Translate colour codes between HEX and RGB instantly.

Colour values

Your result will appear here.

How to use this tool

  1. Enter a HEX code, or use the colour picker to choose a colour.
  2. The matching RGB values appear immediately.
  3. You can also type RGB numbers to get the HEX code, then copy either value.

About this tool

A design file lists a brand colour as #224CBF, but the style sheet you are editing expects rgb(34, 76, 191). Typing the numbers by hand invites a single-digit mistake that is hard to spot on screen.

Paste a hex code or pick a colour and this tool shows both formats side by side. Enter an RGB triple and it produces the matching hex. Designers hand off values to developers, and developers match a colour from a screenshot, both without doing base-16 arithmetic in their head.

Conversion happens locally in your browser. No colour values are stored or transmitted.

Frequently asked questions

Does it support three-digit hex codes?

Yes. A short code like #abc is expanded to #aabbcc before conversion.

What about the alpha channel?

Alpha is not included. This tool converts the six-digit colour formats; transparency stays in your original design.

Are invalid codes rejected?

Yes. A code that is not valid hex produces a clear error message instead of a wrong colour.