CSS hexadecimal RGBA?

I know you can write …

background-color: #ff0000;

… if you want something that is red.

And you can write …

background-color: rgba(255, 0, 0, 0.5);

… if you want something red and translucent.

Is there any terse way of writing partially transparent colors in hexadecimal? I want something like:

background-color: #ff000088; <--- the 88 is the alpha

… or …

background-color: #ff0000 50%;

I am getting all my colors in hexadecimal, and having to convert them all to the decimal 0-255 scale is annoying.

14 Answers
14

Leave a Comment