'How purple 200/500/700 define in the color.xml of a new Android Project?
In a new Android project, it provides a set of purple color for colorPrimary etc. I am interested in how the default color code is generated from.
Android default colors.xml
<resources>
<color name="purple_200">#FFBB86FC</color>
<color name="purple_500">#FF6200EE</color>
<color name="purple_700">#FF3700B3</color>
<color name="teal_200">#FF03DAC5</color>
<color name="teal_700">#FF018786</color>
<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
</resources>
On the other hand, I found a color tool in material.io that have provided
purple 200 = #ce93d8
purple 500 = #9c27b0
purple 700 = #7b1fa2
which does not match the android default purple color. Is it because it has used a different "purple"? or it changed the opacity?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
