ARGB to HEX Converter — Free Online Tool

Convert an ARGB color — hex, 32-bit integer, or separate A/R/G/B values — to HEX and RGBA instantly, with the alpha channel preserved.

Accepts 8-digit AARRGGBB (with or without #), or 6-digit RRGGBB with alpha assumed as FF.
Accepts a signed/unsigned 32-bit decimal integer or a 0x-prefixed hex integer.
Alpha: 100%
HEX #000000
HEXA #000000FF
RGBA rgba(0, 0, 0, 1)
ARGB Int 0xFF000000

What is ARGB?

ARGB is a color format that stores four channels — Alpha, Red, Green, Blue — in that order, unlike RGBA which stores alpha last. It’s most common in Android development (android.graphics.Color), Java/Kotlin UI code, and some Windows/UWP APIs, where colors are represented as either an 8-digit hex string (AARRGGBB) or a signed 32-bit integer.

Does converting ARGB to HEX lose the alpha value?

Standard 6-digit HEX (#RRGGBB) has no alpha channel, so converting ARGB to HEX does drop transparency information. This tool solves that by also generating HEXA (#RRGGBBAA), which preserves alpha as an appended two-digit hex pair, alongside the standard alpha-free HEX for anywhere a pure 6-digit code is required.

ARGB vs. RGBA — what’s the difference?

ARGB and RGBA store the same four values but in different channel order: ARGB leads with alpha (AARRGGBB), while RGBA trails it (RRGGBBAA or rgba(r, g, b, a)). Android and Java APIs use ARGB; CSS and most web contexts use RGBA — this is why a direct ARGB hex string will render the wrong color if pasted straight into CSS without reordering.

Why is my ARGB integer negative?

Android’s Color.parseColor() and Color.argb() return ARGB values as a signed 32-bit integer, so any color with an alpha or red value of 128 or higher overflows into negative decimal territory (e.g. -16776961 for opaque blue). This tool accepts negative decimal integers directly — no manual conversion to unsigned needed.

FAQ

What is the difference between ARGB and RGB hex codes?
An RGB hex code is 6 digits (#RRGGBB) and has no transparency data. An ARGB hex code is 8 digits (#AARRGGBB) and includes an alpha value at the start, which controls how transparent the color is.

How do I convert an ARGB integer to a HEX color?
Enter the integer — decimal or 0x-prefixed hex — into the ARGB Integer mode above. The tool extracts the alpha, red, green, and blue bytes from the 32-bit value and outputs the equivalent HEX, HEXA, and RGBA formats instantly.

Can I convert ARGB to RGBA CSS format?
Yes. Once you enter an ARGB value in any mode, the tool outputs a ready-to-use rgba() CSS string with the alpha channel converted to CSS’s 0–1 decimal scale.

Scroll to Top