How to change the Material You color in Android 12

Android 12 introduces the new Material You design language, which builds upon the older Material Design paradigm. 

With Material You, Google is adding some flair and personality to stock Android. For instance, Material You’s theme engine picks a color from your wallpaper and applies it system-wide as your accent color.