Understanding the Alpha Channel
The alpha channel controls opacity — how transparent or opaque a color is. In RGBA, alpha is a decimal from 0 (fully transparent) to 1 (fully opaque). In 8-digit hex, alpha is the last two digits, ranging from 00 (transparent) to FF (opaque). The conversion: multiply the decimal alpha by 255 and convert to hexadecimal.
Common Alpha Values
1.0 = FF (100% opaque). 0.9 = E6 (90%). 0.75 = BF (75%). 0.5 = 80 (50%). 0.25 = 40 (25%). 0.1 = 1A (10%). 0.0 = 00 (transparent). These are the most commonly needed values when converting between RGBA and hex.
8-Digit Hex in CSS and Development
CSS supports 8-digit hex natively: background-color: #3B82F680; gives blue at 50% opacity. In Android development, the format is #AARRGGBB (alpha first). Some design tools and game engines use 8-digit hex for storing colors with transparency in a single compact value.