Hex to RGB Converter

Runs in your browser — your data is never uploaded.

Convert a hex color code (like #ff0066 or #f06) into its RGB equivalent — the three 0–255 red, green and blue channels used by CSS rgb() and rgba(), design tools, and canvas code. Enter a code with or without the leading #, and the result updates instantly as you type.

How to use Hex to RGB Converter

  1. 1

    Enter a hex color code.

  2. 2

    The RGB value updates automatically.

Share

Embed this tool on your site

Paste this where you want the tool to appear. It runs entirely in your visitor's browser — no uploads, no account, no tracking.

Please keep the attribution line — it's what keeps these tools free.

Need a different size, a dark theme, or a different tool? Build an embed lets you preview it first.

Frequently asked questions

What’s the difference between hex and RGB?+

They describe the same colour two ways. Hex is a compact base-16 notation (#ff0066) common in CSS and design apps; RGB lists the same red, green and blue channels as decimal numbers from 0 to 255, which is easier to read and to adjust one channel at a time.

How do I get an rgba() value with transparency?+

Take the RGB result and add an alpha between 0 and 1 in your CSS — for example rgba(255, 0, 102, 0.5) for 50% opacity. A plain hex code carries no transparency unless you use the 8-digit form, like #ff006680.

Does it accept 3-digit shorthand hex codes?+

Yes — both 3-digit (#f06) and 6-digit (#ff0066) hex codes are accepted; the # is optional either way.

Is my data uploaded anywhere?+

No. The conversion runs entirely in your browser — nothing is sent to a server.