HEX to RGBA Converter

Convert any HEX color code to RGBA with adjustable alpha transparency.

Convert HEX to RGBA

Invalid HEX color. Use #RGB, #RRGGBB, or #RRGGBBAA.
1.00
RGBA rgba(233, 30, 99, 1)

What is HEX to RGBA?

HEX and RGBA are two CSS color notations. HEX uses a hexadecimal string like #E91E63 to encode the red, green, and blue channels of a color in two-digit pairs (00–FF, equivalent to 0–255). It is compact and widely used in design tools, but the standard 6-digit form cannot express transparency.

RGBA stands for Red, Green, Blue, Alpha. It expresses the same color as rgba(233, 30, 99, 1), with three integer channels (0–255) plus an alpha value from 0 (fully transparent) to 1 (fully opaque). Converting HEX to RGBA is essential whenever you need a semi-transparent version of a brand or design color in CSS — for overlays, tinted backgrounds, hover states, or shadows.

How to Convert HEX to RGBA

The conversion is purely mathematical: split the HEX string into red, green, and blue pairs, convert each pair from base-16 to base-10, then append an alpha value.

  1. Strip the leading # if present. Example: #E91E63 becomes E91E63.
  2. If the code is 3 digits (#RGB), expand each digit by duplicating it. #abc becomes aabbcc.
  3. Split into three pairs: red E9, green 1E, blue 63.
  4. Convert each pair from hexadecimal to decimal. E9 = 233, 1E = 30, 63 = 99.
  5. Pick an alpha value between 0 and 1. Use 1 for fully opaque or 0.5 for 50% transparency.
  6. Combine: rgba(233, 30, 99, 1).

For 8-digit HEX codes like #E91E6380, the last pair 80 represents alpha. Convert it to decimal (128) and divide by 255 to get the 0–1 alpha value (≈ 0.50).

Common HEX to RGBA Examples

A reference of popular colors with their HEX, RGBA at full opacity, and RGBA at 50% transparency.

Color HEX RGBA (100%) RGBA (50%)
Red
#FF0000rgba(255, 0, 0, 1)rgba(255, 0, 0, 0.5)
Green
#00FF00rgba(0, 255, 0, 1)rgba(0, 255, 0, 0.5)
Blue
#0000FFrgba(0, 0, 255, 1)rgba(0, 0, 255, 0.5)
Black
#000000rgba(0, 0, 0, 1)rgba(0, 0, 0, 0.5)
White
#FFFFFFrgba(255, 255, 255, 1)rgba(255, 255, 255, 0.5)
Tailwind red-500
#EF4444rgba(239, 68, 68, 1)rgba(239, 68, 68, 0.5)
Tailwind blue-500
#3B82F6rgba(59, 130, 246, 1)rgba(59, 130, 246, 0.5)
Tailwind green-500
#22C55Ergba(34, 197, 94, 1)rgba(34, 197, 94, 0.5)
Material Indigo 500
#3F51B5rgba(63, 81, 181, 1)rgba(63, 81, 181, 0.5)
Material Pink 500
#E91E63rgba(233, 30, 99, 1)rgba(233, 30, 99, 0.5)
Twitter / X blue
#1DA1F2rgba(29, 161, 242, 1)rgba(29, 161, 242, 0.5)
Facebook blue
#1877F2rgba(24, 119, 242, 1)rgba(24, 119, 242, 0.5)
GitHub black
#24292Ergba(36, 41, 46, 1)rgba(36, 41, 46, 0.5)
YouTube red
#FF0000rgba(255, 0, 0, 1)rgba(255, 0, 0, 0.5)
Slack purple
#4A154Brgba(74, 21, 75, 1)rgba(74, 21, 75, 0.5)
Spotify green
#1DB954rgba(29, 185, 84, 1)rgba(29, 185, 84, 0.5)
Bootstrap primary
#0D6EFDrgba(13, 110, 253, 1)rgba(13, 110, 253, 0.5)

Why Use RGBA Instead of HEX?

Choose RGBA whenever you need transparency. Standard 6-digit HEX has no alpha channel, so it cannot produce semi-transparent colors. RGBA is the practical default for:

HEX remains useful for solid colors and for design tokens, but most production CSS ends up mixing both. The 8-digit HEX form (#RRGGBBAA) does support alpha and is supported by all modern browsers, though many developers still prefer RGBA for readability when alpha is involved.

FAQ

Can HEX represent transparency?
Yes. The 8-digit HEX form #RRGGBBAA includes an alpha pair after the RGB pairs. For example, #FF000080 is red at 50% transparency. All evergreen browsers (Chrome, Firefox, Safari, Edge) support it. The classic 6-digit form does not.
What is the alpha value?
Alpha is the opacity channel. In RGBA it ranges from 0 (fully transparent) to 1 (fully opaque). A value of 0.5 means the color is 50% transparent — the layer behind it shows through. In 8-digit HEX, alpha is encoded in the last pair as 00–FF (0–255).
How do I convert short hex (#abc) to RGBA?
Expand each digit by duplicating it: #abc becomes #aabbcc. Then convert each pair to decimal — aa = 170, bb = 187, cc = 204 — and add alpha. The final result is rgba(170, 187, 204, 1). The converter above handles this automatically.
Can browsers parse RGBA?
Yes. RGBA has been supported in every major browser since IE9 and is a fully stable part of CSS Color Module Level 3. You can use it anywhere a color is accepted: color, background, border, box-shadow, gradient stops, and SVG fills.
What's the difference between RGB and RGBA?
RGB takes three channels: red, green, and blue. RGBA adds a fourth channel — alpha — for transparency. rgb(255, 0, 0) is solid red; rgba(255, 0, 0, 0.5) is the same red at 50% opacity. In modern CSS, the rgb() function also accepts a fourth alpha argument, so the two functions overlap in capability.

HEX to RGBA Converter — Free Online Tool

This HEX to RGBA converter turns any hexadecimal color code — three-digit, six-digit, or eight-digit — into the equivalent RGBA value with an adjustable alpha channel. Paste a HEX code such as #E91E63, drag the alpha slider, and copy the resulting rgba() string straight into your CSS. The conversion happens entirely in your browser, so the tool is fast, private, and works offline once the page is loaded.

Web designers and front-end developers reach for HEX to RGBA conversion every day. Brand guidelines almost always specify colors in HEX, but real-world UIs need transparent variations: dimmed modal overlays, faded hover states, soft drop shadows, glassmorphism panels, and tinted image overlays all rely on the alpha channel that RGBA exposes. Instead of guessing, this converter shows the exact RGBA equivalent of any HEX color and lets you preview it on a checkerboard background that reveals the transparency level at a glance.

The tool accepts every common HEX input format. Use #RRGGBB for standard six-digit codes, #RGB for the shorthand three-digit form, or #RRGGBBAA when your source already includes an alpha byte. The leading # is optional. Validation runs as you type, with a clear error message for invalid input. For convenience, the page also includes a reference table of popular HEX colors — Tailwind, Material Design, Bootstrap, and major brand colors like Twitter, GitHub, Spotify, and Slack — with both their full-opacity and 50%-alpha RGBA equivalents pre-calculated.


HEX から RGBA への変換

16進数(HEX)カラーコードを RGBA 形式に変換する無料オンラインツール。#RRGGBB#RGB#RRGGBBAA のいずれの入力にも対応し、アルファ値(透明度)をスライダーで自由に調整できます。すべての処理はブラウザ上で完結し、CSSのrgba()文字列をそのままコピーして利用できます。

HEX에서 RGBA로 변환

16진수 색상 코드(HEX)를 RGBA 형식으로 변환하는 무료 온라인 도구입니다. #RRGGBB, #RGB, #RRGGBBAA 입력을 모두 지원하며, 알파(투명도) 값을 슬라이더로 조정할 수 있습니다. 모든 처리는 브라우저에서 이루어지며, 결과 rgba() 문자열을 바로 CSS에 복사해 사용할 수 있습니다.

HEX 转 RGBA

免费在线工具,将十六进制(HEX)颜色代码转换为 RGBA 格式。支持 #RRGGBB#RGB#RRGGBBAA 多种输入,透明度(alpha)可通过滑块自由调整。所有处理均在浏览器中完成,可直接复制 rgba() 字符串到 CSS 中使用。

HEX 轉 RGBA

免費線上工具,可將十六進位(HEX)顏色代碼轉換為 RGBA 格式。支援 #RRGGBB#RGB#RRGGBBAA 多種輸入,透明度(alpha)可透過滑桿自由調整。所有處理皆在瀏覽器中完成,可直接複製 rgba() 字串到 CSS 中使用。

Convertidor HEX a RGBA

Herramienta gratuita en línea para convertir códigos de color hexadecimales (HEX) al formato RGBA. Acepta entradas #RRGGBB, #RGB y #RRGGBBAA, con un control deslizante de alfa para ajustar la transparencia. Todo el procesamiento ocurre en el navegador y la cadena rgba() resultante se puede copiar directamente al CSS.

Convertisseur HEX vers RGBA

Outil gratuit en ligne pour convertir un code couleur hexadécimal (HEX) au format RGBA. Accepte les entrées #RRGGBB, #RGB et #RRGGBBAA, avec un curseur alpha pour régler la transparence. Tout le traitement s'effectue dans le navigateur et la chaîne rgba() obtenue se copie directement dans votre CSS.

HEX zu RGBA Konverter

Kostenloses Online-Tool zur Umwandlung von hexadezimalen (HEX) Farbcodes in das RGBA-Format. Unterstützt die Eingaben #RRGGBB, #RGB und #RRGGBBAA, mit einem Alpha-Schieberegler für die Transparenz. Die gesamte Verarbeitung erfolgt im Browser und die erzeugte rgba()-Zeichenfolge lässt sich direkt in CSS kopieren.

Конвертер HEX в RGBA

Бесплатный онлайн-инструмент для преобразования шестнадцатеричных (HEX) цветовых кодов в формат RGBA. Поддерживаются форматы #RRGGBB, #RGB и #RRGGBBAA, прозрачность (alpha) регулируется ползунком. Вся обработка выполняется в браузере, готовую строку rgba() можно скопировать прямо в CSS.

Конвертер HEX у RGBA

Безкоштовний онлайн-інструмент для перетворення шістнадцяткових (HEX) кольорових кодів у формат RGBA. Підтримуються формати #RRGGBB, #RGB та #RRGGBBAA, прозорість (alpha) регулюється повзунком. Уся обробка відбувається у браузері, а отриманий рядок rgba() можна одразу скопіювати в CSS.

Chuyển đổi HEX sang RGBA

Công cụ trực tuyến miễn phí giúp chuyển đổi mã màu hệ thập lục phân (HEX) sang định dạng RGBA. Hỗ trợ các định dạng #RRGGBB, #RGB#RRGGBBAA, có thanh trượt alpha để điều chỉnh độ trong suốt. Mọi xử lý diễn ra trong trình duyệt và chuỗi rgba() kết quả có thể sao chép trực tiếp vào CSS.

محوّل HEX إلى RGBA

أداة مجانية عبر الإنترنت لتحويل أكواد الألوان الست عشرية (HEX) إلى صيغة RGBA. تقبل المدخلات بصيغ #RRGGBB و#RGB و#RRGGBBAA، مع شريط تمرير ألفا لضبط الشفافية. تتم جميع المعالجة في المتصفح ويمكن نسخ سلسلة rgba() الناتجة مباشرة إلى ملف CSS.