颜色透明度16进制对照表

透明度 不透明度 16进制
100% 0% 00
99% 1% 03
98% 2% 05
97% 3% 07
96% 4% 0A
95% 5% 0D
94% 6% 0F
93% 7% 12
92% 8% 14
91% 9% 17
90% 10% 1A
89% 11% 1C
88% 12% 1E
87% 13% 21
86% 14% 24
85% 15% 26
84% 16% 29
83% 17% 2B
82% 18% 2E
81% 19% 30
80% 20% 33
79% 21% 36
78% 22% 38
77% 23% 3B
76% 24% 3D
75% 25% 40
74% 26% 42
73% 27% 45
72% 28% 47
71% 29% 4A
70% 30% 4D
69% 31% 4F
68% 32% 52
67% 33% 54
66% 34% 57
65% 35% 59
64% 36% 5C
63% 37% 5E
62% 38% 61
61% 39% 63
60% 40% 66
59% 41% 69
58% 42% 6B
57% 43% 6E
56% 44% 70
55% 45% 73
54% 46% 75
53% 47% 78
52% 48% 7A
51% 49% 7D
50% 50% 80
49% 51% 82
48% 52% 85
47% 53% 87
46% 54% 8A
45% 55% 8C
44% 56% 8F
43% 57% 91
42% 58% 94
41% 59% 96
40% 60% 99
39% 61% 9C
38% 62% 9E
37% 63% A1
36% 64% A3
35% 65% A6
34% 66% A8
33% 67% AB
32% 68% AD
31% 69% B0
30% 70% B3
29% 71% B5
28% 72% B8
27% 73% BA
26% 74% BD
25% 75% BF
24% 76% C2
23% 77% C4
22% 78% C7
21% 79% C9
20% 80% CC
19% 81% CF
18% 82% D1
17% 83% D4
16% 84% D6
15% 85% D9
14% 86% DB
13% 87% DE
12% 88% E0
11% 89% E3
10% 90% E6
9% 91% E8
8% 92% EB
7% 93% ED
6% 94% F0
5% 95% F2
4% 96% F5
3% 97% F7
2% 98% FA
1% 99% FC
0% 100% FF

 

(1)100% 透明度表示完全透明,不透明度为0,对应十六进制00

(2)0% 透明度表示完全不透明,不透明度为255,对应十六进制FF

(3)表里的值为向上取整。

如50%透明度,不透明度为 255*50% = 127.5,向上取整为128,对应十六进制80。

在一些表里50%对应7F,则是采用的向下取整,对应十进制127。

posted @ 2022-03-07 11:29  ______Blazing  阅读(2416)  评论(0编辑  收藏  举报