Color depends on the oxidation state.
The oxidation state is the total number of electrons that an atom gains or loses in order to form a chemical bond with another atom.
9.5m questions
12.2m answers