HTML & CSS · Junior · Question 38 of 75

What do the last two digits in the color #3366ff80 mean?

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.

Further reading

Problem with a question

HTML & CSS · Junior · question 38

Test yourself

Take the HTML & CSS · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz