Hex colors in Android are sometimes eight digits. How? What is the difference between #FFFFFF and #FFFFFF00?

The extra two digits are used to define the colors’ transparency, or alpha channel.

Android uses the ARGB format (or AARRGGBB as you use in your example).

For more (Android-specific) information, take a look at the Color documentation.

Leave a Comment