What causes blue or purple spots on iside of lips of mouth?

Cheek bite for one. One cause can be a cheek bite that caused bleeding below the tissue, but not enough of a bite to cause a laceration or tear so that the blood leaked out into your mouth. Another reason could be a blue nevus. You should see a dentist to have the spots evaluated and then see if any treatment is needed.