Zajia previous Android color table only color and hexadecimal, sometimes need to set the R G B component int value, such as PAINT.SETARGB (255, 127, 255, 212), you need to calculate the value of the next component. A color table of type int with R G B component is provided here. Note the first parameter of Paint.setalpha () and Paint.setargb (), which is transparency. The value range is 0---255, the smaller the value, the more transparent the color, the lighter the performance. In fact, when set to 10 below there will be a transparent effect.
Note: This transparency is used to set the transparency of the brush paint and then paint a variety of things with paint.
Common RGB Color tables
|
R |
G |
B |
Value |
|
R |
G |
B |
Value |
|
R |
G |
B |
Value |
Black |
0 |
0 |
0 |
#000000 |
Yellow |
255 |
255 |
0 |
#FFFF00 |
Light gray Blue |
176 |
224 |
230 |
#B0E0E6 |
Ivory Black |
41 |
36 |
33 |
#292421 |
Banana Color |
227 |
207 |
87 |
#E3CF57 |
Royal blue |
65 |
105 |
225 |
#4169E1 |
Grey |
192 |
192 |
192 |
#C0C0C0 |
Cadmium YELLOW |
255 |
153 |
18 |
#FF9912 |
Slate Blue |
106 |
90 |
205 |
#6A5ACD |
Cool Grey |
128 |
138 |
135 |
#808A87 |
Dougello |
235 |
142 |
85 |
#EB8E55 |
Sky |
135 |
206 |
235 |
#87CEEB |
Slate Grey |
112 |
128 |
105 |
#708069 |
Forum Gold |
255 |
227 |
132 |
#FFE384 |
|
|
|
|
|
Warm Grey |
128 |
128 |
105 |
#808069 |
Golden |
255 |
215 |
0 |
#FFD700 |
Cyan |
0 |
255 |
255 |
#00FFFF |
|
|
|
|
|
Yellow color |
218 |
165 |
105 |
#DAA569 |
Green soil |
56 |
94 |
15 |
#385E0F |
White |
255 |
255 |
255 |
#FFFFFF |
Melon Color |
227 |
168 |
105 |
#E3A869 |
Indigo |
8 |
46 |
84 |
#082E54 |
Antique White |
250 |
235 |
215 |
#FAEBD7 |
Orange |
255 |
97 |
0 |
#FF6100 |
Bi-Green |
127 |
255 |
212 |
#7FFFD4 |
Azure |
240 |
255 |
255 |
#F0FFFF |
Cadmium Orange |
255 |
97 |
3 |
#FF6103 |
Cyan Green |
64 |
224 |
208 |
#40E0D0 |
White |
245 |
245 |
245 |
#F5F5F5 |
Carrot Color |
237 |
145 |
33 |
#ED9121 |
Green |
0 |
255 |
0 |
#00FF00 |
White Almond |
255 |
235 |
205 |
#FFFFCD |
Orange Yellow |
255 |
128 |
0 |
#FF8000 |
Yellow-Green |
127 |
255 |
0 |
#7FFF00 |
Cornsilk |
255 |
248 |
220 |
#FFF8DC |
Light Yellow |
245 |
222 |
179 |
#F5DEB3 |
Cobalt Green |
61 |
145 |
64 |
#3D9140 |
Eggshell Color |
252 |
230 |
201 |
#FCE6C9 |
|
|
|
|
|
Green |
0 |
201 |
87 |
#00C957 |
Gray |
255 |
250 |
240 |
#FFFAF0 |
Brown |
128 |
42 |
42 |
#802A2A |
Forest Green |
34 |
139 |
34 |
#228B22 |
Gainsboro |
220 |
220 |
220 |
#DCDCDC |
Beige |
163 |
148 |
128 |
#A39480 |
Green Grass |
124 |
252 |
0 |
#7CFC00 |
Ghostwhite |
248 |
248 |
255 |
#F8F8FF |
Forged thick loess color |
138 |
54 |
15 |
#8A360F |
Lime Green |
50 |
205 |
50 |
#32CD32 |
Honey Dew Orange |
240 |
255 |
240 |
#F0FFF0 |
Forged Brown Earth Color |
135 |
51 |
36 |
#873324 |
Mint Color |
189 |
252 |
201 |
#BDFCC9 |
Ivory White |
250 |
255 |
240 |
#FAFFF0 |
Chocolate color |
210 |
105 |
30 |
#D2691E |
Green Grass |
107 |
142 |
35 |
#6B8E23 |
Linen color |
250 |
240 |
230 |
#FAF0E6 |
Flesh |
255 |
125 |
64 |
#FF7D40 |
Dark green |
48 |
128 |
20 |
#308014 |
Navajowhite |
255 |
222 |
173 |
#FFDEAD |
Tawny |
240 |
230 |
140 |
#F0E68C |
Sea Green |
46 |
139 |
87 |
#2E8B57 |
Old Lace |
253 |
245 |
230 |
#FDF5E6 |
Rose |
188 |
143 |
143 |
#BC8F8F |
Tender Green |
0 |
255 |
127 |
#00FF7F |
Sea Shell Color |
255 |
245 |
238 |
#FFF5EE |
Shogont Color |
199 |
97 |
20 |
#C76114 |
|
|
|
|
|
White |
255 |
250 |
250 |
#FFFAFA |
Standard soil Brown |
115 |
74 |
18 |
#734A12 |
Purple |
160 |
32 |
240 |
#A020F0 |
|
|
|
|
|
Squid Ink Brown |
94 |
38 |
18 |
#5E2612 |
Violet Blue |
138 |
43 |
226 |
#8A2BE2 |
Red |
255 |
0 |
0 |
#FF0000 |
Color |
160 |
82 |
45 |
#A0522D |
Jasoa |
160 |
102 |
211 |
#A066D3 |
Brick Red |
156 |
102 |
31 |
#9C661F |
Horse Brown |
139 |
69 |
19 |
#8B4513 |
Purple Lake |
153 |
51 |
250 |
#9933FA |
Cadmium Red |
227 |
23 |
13 |
#E3170D |
Sandy Brown |
244 |
164 |
96 |
#F4A460 |
Light Purple |
218 |
112 |
214 |
#DA70D6 |
Coral Color |
255 |
127 |
80 |
#FF7F50 |
Brownish Brown |
210 |
180 |
140 |
#D2B48C |
Plum Red |
221 |
160 |
221 |
#DDA0DD |
Bricks Red |
178 |
34 |
34 |
#B22222 |
|
|
|
|
|
|
|
|
|
Indian Red |
176 |
23 |
31 |
#B0171F |
Blue |
0 |
0 |
255 |
#0000FF |
|
|
|
|
Maroon |
176 |
48 |
96 |
#B03060 |
Cobalt color |
61 |
89 |
171 |
#3D59AB |
|
|
|
|
Pink |
255 |
192 |
203 |
#FFC0CB |
Dodger Blue |
30 |
144 |
255 |
#1E90FF |
|
|
|
|
Strawberry Color |
135 |
38 |
87 |
#872657 |
Jackie Blue |
11 |
23 |
70 |
#0B1746 |
|
|
|
|
Orange Red |
250 |
128 |
114 |
#FA8072 |
Manganese Blue |
3 |
168 |
158 |
#03A89E |
|
|
|
|
Tomato red |
255 |
99 |
71 |
#FF6347 |
Dark blue |
25 |
25 |
112 |
#191970 |
|
|
|
|
Orange Red |
255 |
69 |
0 |
#FF4500 |
Peacock Blue |
51 |
161 |
201 |
#33A1C9 |
|
|
|
|
Dark red |
255 |
0 |
255 |
#FF00FF |
Jade, Turkey |
0 |
199 |
140 |
#00C78C |
Light pink #FFB6C1 255,182,193
Pink #FFC0CB 255,192,203
Scarlet/Crimson #DC143C 220,20,60
Mauve #FFF0F5 255,240,245
Weak Violet Red #DB7093 219,112,147
Passionate Pink #FF69B4 255,105,180
Deep Pink #FF1493 255,20,147
Medium Violet Red #C71585 199,21,133
Orchid Violet #DA70D6 218,112,214
Thistle #D8BFD8 216,191,216
Li Zizi #DDA0DD 221,160,221
Violet #EE82EE 238,130,238
Magenta/Rose #FF00FF 255,0,255
Lantern Begonia/Fuchsia #FF00FF 255,0,255
Dark Magenta #8B008B 139,0,139
Purple #800080 128,0,128
Chinese Orchid Violet #BA55D3 186,85,211
Dark Violet #9400D3 148,0,211
Dark Orchid Violet #9932CC 153,50,204
Indigo/Violet #4B0082 75,0,130
Blue Violet #8A2BE2 138,43,226
Medium Purple #9370DB 147,112,219
Medium Slate Blue #7B68EE 123,104,238
Slate Blue #6A5ACD 106,90,205
Dark Slate Blue #483D8B 72,61,139
Lavender Lavender #E6E6FA 230,230,250
Ghost White #F8F8FF 248,248,255
Ametis #0000FF 0,0,255
Medium Blue #0000CD 0,0,205
Midnight Blue #191970 25,25,112
Dark blue #00008B 0,0,139
Navy blue #000080 0,0,128
Royal blue/Sapphire #4169E1 65,105,225
Cornflower Blue #6495ED 100,149,237
Bright Steel Blue #B0C4DE 176,196,222
Bright Slate Grey #778899 119,136,153
Slate Grey #708090 112,128,144
Dodge Blue #1E90FF 30,144,255
Alice Blue #F0F8FF 240,248,255
Steel Blue/Livid #4682B4 70,130,180
Bright sky blue #87CEFA 135,206,250
Sky Blue #87CEEB 135,206,235
Deep sky blue #00BFFF 0,191,255
Bright Blue #ADD8E6 173,216,230
Gunpowder Green #B0E0E6 176,224,230
Military Blue #5F9EA0 95,158,160
Blue #F0FFFF 240,255,255
Light Cyan #E0FFFF 224,255,255
Weak Emerald #AFEEEE 175,238,238
Cyan #00FFFF 0,255,255
Aqua #00FFFF 0,255,255
Dark Emerald #00CED1 0,206,209
Dark Slate Grey #2F4F4F 47,79,79
Dark Cyan #008B8B 0,139,139
Water Duck #008080 0,128,128
Medium Emerald #41CC 72,209,204
Shallow Ocean Green #20B2AA 32,178,170
Emerald #40E0D0 64,224,208
Emerald Turquoise #7FFFD4 127,255,212
Medium Turquoise #66CDAA 102,205,170
Medium Spring Green #00FA9A 0,250,154
Mint Cream #F5FFFA 245,255,250
Spring Green #00FF7F 0,255,127
Medium Ocean Green #3CB371 60,179,113
Ocean Green #2E8B57 46,139,87
Melon Color #F0FFF0 240,255,240
Light green #90EE90 144,238,144
Weak Green #98FB98 152,251,152
Dark Ocean Green #8FBC8F 143,188,143
Flash dark green #32CD32 50,205,50
Flash Green #00FF00 0,255,0
Forest Green #228B22 34,139,34
Pure Green #008000 0,128,0
Dark green #006400 0,100,0
Chart Wine Green #7FFF00 127,255,0
Lawn Green #7CFC00 124,252,0
Green-Yellow #ADFF2F 173,255,47
Dark Olive green #556B2F 85,107,47
Yellow-Green #9ACD32 154,205,50
Olive Brown #6B8E23 107,142,35
Beige/Grey-brown #F5F5DC 245,245,220
Bright Chrysanthemum Yellow #FAFAD2 250,250,210
Ivory #FFFFF0 255,255,240
Light yellow #FFFFE0 255,255,224
Pure Yellow #FFFF00 255,255,0
Olive #808000 128,128,0
Deep-stuck cloth #BDB76B 189,183,107
Lemon Silk #FFFACD 255,250,205
Grey Chrysanthemum Yellow #EEE8AA 238,232,170
Kathu #F0E68C 240,230,140
Golden #FFD700 255,215,0
Corn Silk color #FFFC 255,248,220
Golden Chrysanthemum Yellow #DAA520 218,165,32
Dark Golden chrysanthemum Yellow #B8860B 184,134,11
Flower of the white #FFFAF0 255,250,240
Old Lace #FDF5E6 253,245,230
Wheat Color #F5DEB3 245,222,179
Deer Boots #FFE4B5 255,228,181
Orange #FFA500 255,165,0
Papaya #FFEFD5 255,239,213
Whitish almond-coloured #FFEBCD 255,235,205
Aboriginal White #FFDEAD 255,222,173
Antique White #FAEBD7 250,235,215
Tan #D2B48C 210,180,140
Hardwood color #DEB887 222,184,135
Pottery Yellow #FFE4C4 255,228,196
Dark Orange #FF8C00 255,140,0
Linen #FAF0E6 250,240,230
Peruvian #CD853F 205,133,63
Peach Flesh #FFDAB9 255,218,185
Sandy Brown #F4A460 244,164,96
Chocolate #D2691E 210,105,30
Saddle Brown #8B4513 139,69,19
Sea Shell #FFF5EE 255,245,238
loess Ochre #A0522D 160,82,45
Light Salmon Beige #FFA07A 255,160,122
Coral #FF7F50 255,127,80
Orange-Red #FF4500 255,69,0
Deep meat/Salmon #E9967A 233,150,122
Tomato Red #FF6347 255,99,71
Mist Rose #FFE4E1 255,228,225
Fresh Meat/Salmon color #FA8072 250,128,114
Snow #FFFAFA 255,250,250
Light Coral #F08080 240,128,128
Rose Brown #BC8F8F 188,143,143
Indian Red #CD5C5C 205,92,92
Pure Red #FF0000 255,0,0
Brown #A52A2A 165,42,42
Refractory Bricks #B22222 178,34,34
Dark red #8B0000 139,0,0
Maroon #800000 128,0,0
White #FFFFFF 255,255,255
White Smoke #F5F5F5 245,245,245
Geng Sboro Grey #DCDCDC 220,220,220
Light grey #D3D3D3 211,211,211
Silver Grey #C0C0C0 192,192,192
Dark grey #A9A9A9 169,169,169
Grey #808080 128,128,128
Dim Grey #696969 105,105,105
Pure Black #000000 0,0,0
Android Development: Setalpha () method and common RGB color table----color, r G B component value (int), 16 binary means one by one corresponds