RGBA to 8-Digit HEX Converter
Convert rgba() values with transparency into modern 8-character hexadecimal web codes (#RRGGBBAA).
HEX Color Opacity & Alpha Transparency Table (0% to 100%)
Reference chart for 8-digit hexadecimal color values (#RRGGBBAA). Map percentage opacity and decimal alpha (0.00 – 1.00) directly to 2-digit hex alpha codes.
| Opacity % | Decimal Alpha | 2-Digit Hex | Base-16 Calculation | Example Output |
|---|---|---|---|---|
| 100% | 1.00 | FF | round(1.00 × 255) = 255 | #2563EBFF |
| 95% | 0.95 | F2 | round(0.95 × 255) = 242 | #2563EBF2 |
| 90% | 0.90 | E6 | round(0.90 × 255) = 230 | #2563EBE6 |
| 85% | 0.85 | D9 | round(0.85 × 255) = 217 | #2563EBD9 |
| 80% | 0.80 | CC | round(0.80 × 255) = 204 | #2563EBCC |
| 75% | 0.75 | BF | round(0.75 × 255) = 191 | #2563EBBF |
| 70% | 0.70 | B3 | round(0.70 × 255) = 179 | #2563EBB3 |
| 60% | 0.60 | 99 | round(0.60 × 255) = 153 | #2563EB99 |
| 50% | 0.50 | 80 | round(0.50 × 255) = 128 | #2563EB80 |
| 40% | 0.40 | 66 | round(0.40 × 255) = 102 | #2563EB66 |
| 30% | 0.30 | 4D | round(0.30 × 255) = 77 | #2563EB4D |
| 25% | 0.25 | 40 | round(0.25 × 255) = 64 | #2563EB40 |
| 20% | 0.20 | 33 | round(0.20 × 255) = 51 | #2563EB33 |
| 15% | 0.15 | 26 | round(0.15 × 255) = 38 | #2563EB26 |
| 10% | 0.10 | 1A | round(0.10 × 255) = 26 | #2563EB1A |
| 5% | 0.05 | 0D | round(0.05 × 255) = 13 | #2563EB0D |
| 0% | 0.00 | 00 | round(0.00 × 255) = 0 | #2563EB00 |
Technical Specification & Mathematical Principles
The RGB channels (0-255) are converted to base-16 strings.
The alpha opacity a ∈ [0.0, 1.0] is multiplied by 255: AA = Math.round(a * 255).toString(16).padStart(2, '0'), producing the 8-digit representation #RRGGBBAA.
Frequently Asked Questions
How is the 8th and 7th character in an 8-digit hex code calculated?
Do modern browsers support 8-digit hex codes?
What is the equivalent of 50% opacity in hex?
Related Design & Color Instruments
HEX to RGB Converter
Convert hexadecimal web color strings (#RRGGBB) to decimal integer rgb(r, g, b) tuples instantly.
RGB to HEX Converter
Convert decimal RGB integer components (0-255) to uppercase 6-digit padded hexadecimal strings.
HEX to HSL Converter
Convert hexadecimal color codes to CSS HSL and HSLA cylindrical coordinates with step-by-step algebraic formula breakdowns.
HSL to HEX Converter
Transform cylindrical HSL coordinates into standardized 6-digit hexadecimal web color strings.