HEX to RGBA / ARGB Converter

Convert HEX color codes to RGBA with a custom alpha, and to ARGB (#AARRGGBB) for Android and .NET. Instant, with preview.

—

How it works

RRGGBB splits into three 2-digit hex channels converted to decimal (R, G, B). RGBA appends your alpha (0–1); ARGB places the alpha first as a hex byte: alpha × 255, e.g. 0.5 ≈ 0x80 — the format Android colors and .NET Color.FromArgb use.

Examples

InputOutput
#3B82F6, alpha 0.5rgba(59, 130, 246, 0.5) · #803B82F6
#FF0000, alpha 1rgba(255, 0, 0, 1) · #FFFF0000
#000, alpha 0.25rgba(0, 0, 0, 0.25) · #40000000

Frequently Asked Questions

What is the difference between RGBA and ARGB?

Only the position of the alpha channel: RGBA puts it last (CSS style: red, green, blue, alpha 0–1), ARGB puts it first as a two-digit hex prefix (#AARRGGBB) — used by Android, XAML and .NET. The color is identical.

How is the alpha hex digit computed?

Alpha (0–1) is multiplied by 255 and rounded to a hex byte: 1.0 = FF, 0.5 ≈ 80, 0.25 ≈ 40, 0 = 00. So #3B82F6 at 50% becomes #803B82F6.

Does a 3-digit HEX work?

Yes — #F6B expands to #FF66BB (each digit doubles) before conversion, exactly like CSS does.

Related Tools

RGB to HEX ConverterHEX to RGB ConverterCMYK to RGB ConverterRGB to CMYK ConverterHEX to CMYK ConverterColor Code to Name ConverterRGB to RAL ConverterHEX to RAL ConverterCMYK to RAL ConverterRAL Classic Colour Chart - All 217 Colours