First example: Define transparent black 80% transparent.
The transparency setting is from 0 to 255, 80 is obviously set at 204, the following 204 of the corresponding 16 binary data is D6, so
So the color is set to #d6000000
The following 10 binary in the corresponding table in 16
0===01===12===23===34===45===56===67===78===89===910===a11===b12===c13===d14===e15===f16===1017===1118===1219= ==1320===1421===1522===1623===1724===1825===1926===1a27===1b28===1c29===1d30===1e31===1f32===2033===2134=== 2235===2336===2437===2538===2639===2740===2841===2942===2a43===2b44===2c45===2d46===2e47===2f48===3049===3150= ==3251===3352===3453===3554===3655===3756===3857===3958===3a59===3b60===3c61===3d62===3e63===3f64===4065=== 4166===4267===4368===4469===4570===4671===4772===4873===4974===4a75===4b76===4c77===4d78===4e79===4f80===5081= ==5182===5283===5384===5485===5586===5687===5788===5889===5990===5a91===5b92===5c93===5d94===5e95===5f96=== 6097===6198===6299===63100===64101===65102===66103===67104===68105===69106===6a107===6b108===6c109===6d110=== 6e111===6f112===70113===71114===72115===73116===74117===75118===76119===77120===78121===79122===7a123===7b124= ==7c125===7d126===7e127===7f128===80129===81130===82131===83132===84133===85134===86135===87136===88137=== 89138===8a139===8b140===8c141===8d142===8e143===8f144===90145===91146===92147===93148===94149===95150===96151===97152===98153===99154= ==9a155===9b156===9c157===9d158===9e159===9f160===a0161===a1162===a2163===a3164===a4165===a5166===a6167=== a7168===a8169===a9170===aa171===ab172===ac173===ad174===ae175===af176===b0177===b1178===b2179===b3180===b4181= ==b5182===b6183===b7184===b8185===b9186===ba187===bb188===bc189===bd190===be191===bf192===c0193===c1194=== c2195===c3196===c4197===c5198===c6199===c7200===c8201===c9202===ca203===cb204===cc205===cd206===ce207===cf208= ==d0209===d1210===d2211===d3212===d4213===d5214===d6215===d7216===d8217===d9218===da219===db220===dc221=== dd222===de223===df224===e0225===e1226===e2227===e3228===e4229===e5230===e6231===e7232===e8233===e9234===ea235= ==eb236===ec237===ed238===ee239===ef240===f0241===f1242===f2243===f3244===f4245===f5246===f6247===f7248=== F8249===f9250===fa251===fb252===fc253===fd254===fe255===ff
Android Transparent Color settings description