HTML & CSS · Junior · Question 38 of 75
What do the last two digits in the color #3366ff80 mean?
- 1The color's brightness
- ✓Correct answer: Transparency (alpha channel):
80in hex ≈ 50% - 3It's an error: a hex color can only have 6 characters
Explanation
Hex notation supports 3, 4, 6 and 8 characters. #RRGGBBAA adds an alpha channel: 80 = 128 of 255 ≈ 50% opacity. The same color can be written as rgb(51 102 255 / 50%). Other formats include hsl(), oklch(), named colors and currentColor.