android black color at 85% opacity

后端 未结 2 1682
执笔经年
执笔经年 2021-01-31 04:12

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

相关标签:
2条回答
  • 2021-01-31 04:38

    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

    0 讨论(0)
  • 2021-01-31 04:47

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

    So: #D8000000

    0 讨论(0)
提交回复
热议问题