Skip to content Skip to sidebar Skip to footer

Android Black Color At 85% Opacity

What is the color code of black with 85% opacity? I have #65000000 - but its too light. I need it a bit darker, at 85% opacity. How do I get that? And why can't I setAlpha(85) on a

Solution 1:

Each component goes from 0 through 255, so 85% opacity would be 85% of 255, i.e. 216.

So: #D8000000

Solution 2:

85% black should be #D8000000.

Each component (A, R, G, B) can take values from 0-255. 85% of 255 = 216. 216 in Hex = D8

Post a Comment for "Android Black Color At 85% Opacity"