Hex to RGB Converter
Convert hex colour codes (#7755FF) to CSS rgb() values instantly. 100% in your browser, no signup, supports alpha channels.
Need more than a converter? AI background removal, upscale, edit and generate — one workspace.
How to use the Hex to RGB Converter
- 1Paste a hex codeAny 3, 6 or 8-digit hex. With or without the leading #.
- 2Read the rgb() valueUpdates as you type. Switch between rgb() and rgba() automatically based on whether you include alpha.
- 3CopyClick 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?
Are my colours uploaded anywhere?
Does it support 3-digit hex (e.g. #FFF)?
Alpha channels?
Mobile-friendly?
Need more than free tools? Get Postcrest's full AI image suite.
AI background removal, AI upscaling, AI image editor and AI photoshoot — every leading model in one workspace.