I can’t figure out which color is colorAccent

Here’s my colors.xml:

<?xml version="1.0" encoding="utf-8"?>
    <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="white">#FFFFFFFF</color>

I think this was one of the new features in the new Android Studio Version (because I updated Android Studio recently).

Can someone please tell me where colorAccent went?


The colorPrimary, colorSecondary, colorAccent… are attributes defined in the App Theme.

<style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar">
    <!-- Primary brand color. -->
    <item name="colorPrimary">@color/purple_500</item>
    <item name="colorOnPrimary">@color/white</item>
    <!-- ... -->

They have a reference to a color resources defined in colors.xml (like @color/purple_200).
Also you can use it with something like: