Hex to RGB Converter

Convert hex colour codes (#7755FF) to CSS rgb() values instantly. 100% in your browser, no signup, supports alpha channels.

100% in your browser — files never uploaded.
Postcrest — full AI image suite

Need more than a converter? AI background removal, upscale, edit and generate — one workspace.

How to use the Hex to RGB Converter

  1. 1
    Paste a hex code
    Any 3, 6 or 8-digit hex. With or without the leading #.
  2. 2
    Read the rgb() value
    Updates as you type. Switch between rgb() and rgba() automatically based on whether you include alpha.
  3. 3
    Copy
    Click Copy or select the output. Paste straight into CSS, Tailwind config, design tools.

Hex vs RGB — what's the difference?

A hex colour code is six hexadecimal digits (two each for red, green, blue), written as #RRGGBB. Optionally followed by two more digits for alpha (transparency), giving #RRGGBBAA.

rgb() and rgba() are the CSS function notations for the same colour values. rgb(119, 85, 255) is identical to #7755FF — just written for humans instead of machines. CSS supports both interchangeably.

Frequently asked questions

Is this tool free?
Yes — free forever, no signup.
Are my colours uploaded anywhere?
No. The conversion runs entirely in JavaScript in your browser.
Does it support 3-digit hex (e.g. #FFF)?
Yes — 3-digit and 4-digit hex are expanded automatically.
Alpha channels?
Yes — 8-digit hex (e.g. #7755FFCC) produces rgba() output.
Mobile-friendly?
Yes, works on iOS Safari and Android Chrome.