{"slug": "hexadecimal-color-code-for-transparency", "title": "Hexadecimal color code for transparency", "summary": "The article explains how to add transparency to hexadecimal color codes by appending a two-character value representing the alpha channel. For example, to achieve 40% opacity on black (#000000), the code becomes #66000000, where \"66\" corresponds to 40% transparency. A complete table is provided, mapping transparency percentages from 0% to 100% to their corresponding hex values (e.g., FF for 100%, 00 for 0%).", "body_md": "For example, you want to set 40% alpha transparence to #000000\n(black color), you need to add 66\nlike this #66000000\n.\n- 100% — FF\n- 99% — FC\n- 98% — FA\n- 97% — F7\n- 96% — F5\n- 95% — F2\n- 94% — F0\n- 93% — ED\n- 92% — EB\n- 91% — E8\n- 90% — E6\n- 89% — E3\n- 88% — E0\n- 87% — DE\n- 86% — DB\n- 85% — D9\n- 84% — D6\n- 83% — D4\n- 82% — D1\n- 81% — CF\n- 80% — CC\n- 79% — C9\n- 78% — C7\n- 77% — C4\n- 76% — C2\n- 75% — BF\n- 74% — BD\n- 73% — BA\n- 72% — B8\n- 71% — B5\n- 70% — B3\n- 69% — B0\n- 68% — AD\n- 67% — AB\n- 66% — A8\n- 65% — A6\n- 64% — A3\n- 63% — A1\n- 62% — 9E\n- 61% — 9C\n- 60% — 99\n- 59% — 96\n- 58% — 94\n- 57% — 91\n- 56% — 8F\n- 55% — 8C\n- 54% — 8A\n- 53% — 87\n- 52% — 85\n- 51% — 82\n- 50% — 80\n- 49% — 7D\n- 48% — 7A\n- 47% — 78\n- 46% — 75\n- 45% — 73\n- 44% — 70\n- 43% — 6E\n- 42% — 6B\n- 41% — 69\n- 40% — 66\n- 39% — 63\n- 38% — 61\n- 37% — 5E\n- 36% — 5C\n- 35% — 59\n- 34% — 57\n- 33% — 54\n- 32% — 52\n- 31% — 4F\n- 30% — 4D\n- 29% — 4A\n- 28% — 47\n- 27% — 45\n- 26% — 42\n- 25% — 40\n- 24% — 3D\n- 23% — 3B\n- 22% — 38\n- 21% — 36\n- 20% — 33\n- 19% — 30\n- 18% — 2E\n- 17% — 2B\n- 16% — 29\n- 15% — 26\n- 14% — 24\n- 13% — 21\n- 12% — 1F\n- 11% — 1C\n- 10% — 1A\n- 9% — 17\n- 8% — 14\n- 7% — 12\n- 6% — 0F\n- 5% — 0D\n- 4% — 0A\n- 3% — 08\n- 2% — 05\n- 1% — 03\n- 0% — 00\nYou can see other best Android Gists or offer your just here https://github.com/lopspower/BestAndroidGists 👍.", "url": "https://wpnews.pro/news/hexadecimal-color-code-for-transparency", "canonical_source": "https://gist.github.com/lopspower/03fb1cc0ac9f32ef38f4", "published_at": "2016-03-08 08:53:53+00:00", "updated_at": "2026-05-23 23:05:19.313925+00:00", "lang": "en", "topics": ["developer-tools"], "entities": [], "alternates": {"html": "https://wpnews.pro/news/hexadecimal-color-code-for-transparency", "markdown": "https://wpnews.pro/news/hexadecimal-color-code-for-transparency.md", "text": "https://wpnews.pro/news/hexadecimal-color-code-for-transparency.txt", "jsonld": "https://wpnews.pro/news/hexadecimal-color-code-for-transparency.jsonld"}}