The background color of the button is correct, too. The default background color of buttons in Theme.AppCompat.Light.NoActionBar is gray instead of purple.