Here’s a correct table of percentages to hex values for opacity. E.g. for 50% white you’d use #80FFFFFF. To think in terms of transparency instead, flip the order of the percentages (more opaque = less transparent).
% | Hex |
---|---|
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 |
(source question)
Related Contents:
- Understanding colors on Android (six characters)
- How to get a Color from hexadecimal Color String
- Hex colors in Android are sometimes eight digits. How? What is the difference between #FFFFFF and #FFFFFF00?
- How to make a background 20% transparent on Android
- How to set the text color of TextView in code?
- How can I get color-int from color resource?
- How to convert a color integer to a hex String in Android?
- How to set background color of a View
- Android lollipop change navigation bar color
- Android WebView style background-color:transparent ignored on android 2.2
- Android get color as string value
- Not able to create new color item in colors.xml file
- Android: Generate random color on click?
- What is default color for text in textview?
- Change text color of one word in a TextView
- Android textview outline text
- How to change status bar color to match app in Lollipop? [Android]
- How to set custom ActionBar color / style?
- item selected color in android BottomNavigationView
- TextView setTextColor() not working
- Android: Where is the Spinner widget’s text color attribute hiding?
- Android text view color doesn’t change when disabled
- How to make transparent gradient?
- Change color of the drop down arrow of Spinner in XML
- Change progressbar color through CODE ONLY in Android
- Android : change button text and background color
- What are the default color values for the Holo theme on Android 4.0?
- Changing background color of ListView items on Android
- How to change default text color using custom theme?
- How can I make an image transparent on Android?
- Check if color is dark or light in Android
- What should be the color of the Ripple, colorPrimary or colorAccent? (Material Design)
- Change colour of small triangle on spinner in android
- Finding the dominant color of an image in an Android @drawable
- How to change the track color of a SwitchCompat
- Change button color in AlertDialog
- Seek Bar thumb not transparent in Android 5.0 API 21 Lollipop
- android: Animate color change from color to color
- Disabled color state of Material button
- How to change Options menu dots color? [duplicate]
- Android Transparent TextView?
- Android convert color int to hexa String
- How to set a shape’s background in xml?
- How to change the border color(un-focused) of an EditText?
- What’s the Color code for Android Hint?
- Snackbar action text color not changing
- ImageButton doesn’t highlight on click with Transparent background
- Android map marker color?
- Programmatically make a color more transparent
- How to add parameters to HttpURLConnection using POST using NameValuePair