Convert 8-digit hex colors with alpha
The #RRGGBBAA syntax lets a single CSS hex value carry an opacity in its final byte. This converter decodes any 8-digit hex into its red, green, blue, and alpha components, gives you the matching rgba() string, and round-trips back to hex. A checkerboard backing behind the swatch makes the transparency visible so you can judge how the color will actually composite.
How it works
The input is normalized first: shorthand #RGB and #RGBA are expanded by doubling each digit, and a 6-digit value gets an ff alpha appended. The three color bytes are parsed as 0–255 integers exactly as in any hex color. The alpha byte is parsed the same way, then divided by 255 to produce the CSS 0–1 alpha used in rgba(). Converting back simply reverses this: the 0–1 alpha is multiplied by 255 and formatted as a two-digit hex byte appended to the color.
Example and notes
The value #3b82f6cc decodes to rgba(59, 130, 246, 0.800) — a blue at 80% opacity. Watch the channel order: CSS uses alpha-last #RRGGBBAA, whereas Android uses alpha-first #AARRGGBB, so a value copied from Android tooling will look wrong unless you reorder it. The alpha-stripped 6-digit output is handy when you need a solid version of the same color, for instance as a fallback for older targets.