Skip to content

Instantly share code, notes, and snippets.

@pfieffer
Last active October 20, 2022 05:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pfieffer/566a486cc84e752e24410328db9d46fd to your computer and use it in GitHub Desktop.
Save pfieffer/566a486cc84e752e24410328db9d46fd to your computer and use it in GitHub Desktop.
ARGB where A = Alpha. Opacity levels according to percentage
E.g. for 50% white you'd use #80FFFFFF
100% — FF
95% — F2
90% — E6
85% — D9
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
@pfieffer
Copy link
Author

Hex values for the alpha in ARGB.
Substitute AA with the desired value of alpha in AARRGGBB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment