'content attribute text color - css

I would like to add color to a text in the content attribute. I did like this, didn't work

 .atleastTwoChars:after
 {
    content: "2*";
    float: left;
    width: 16px;
    height: 14px;
    border: 0;
    margin: 2px 3px 0px 3px;
    color:#FFBC0000;
}


Solution 1:[1]

There are 8 digits in your color:

color:#FFBC0000;

Were your extra two zeroes added by accident?

color:#FFBC00;

Or does the FF represent 100% alpha (completely opaque)? If so, leave it out; CSS hex colors don't support specifying the alpha channel, only the rgba() notation does:

color:#BC0000;

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1