Why some things have a certain color

First of all — everything is made up of electrons and atoms, but each substance has a different number of atoms and different electron configuration.