最佳答案
以下是 % 到十六进制值的表格:
示例:对于 85% 白色,您可以使用 #D9FFFFFF
。
此处 85% =“D9”和白色 =“FFFFFF”
100% — FF
95% — F2
90% — E6
<b><em>85% — D9</em></b>
80% — CC
75% — BF
70% — B3
65% — A6
60% — 99
55% — 8C
50% — 80
45% — 73
40% — 66
35% — 59
30% — 4D
25% — 40
20% — 33
15% — 26
10% — 1A
5% — 0D
0% — 00
如何计算?
引用maleta在现已删除的评论中:
FF is number written in hex mode. That number represent 255 in decimal. For example, if you want 42% to calculate you need to find 42% of numbeer 255 and convert that number to hex. 255 * 0.42 ~= 107 107 to hex is "6B
-- maleta (2016-12-27 10:32:28Z, License: CC BY-SA 3.0)
关于colors - 透明 ARGB 十六进制值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23201134/