Color change of button on click

How to change color of a button on selection(on click). I was trying to find solution but was unable. Help me out. Thanks

.button.active-state {
  /* styles when it is pressed */
}