When put into a roaring bunsen burner flame on a nichrome wire, compounds containing certain cations will give specific colours as follows.

IonColour in flame test
lithium (Li⁺)red
sodium (Na⁺)yellow
potassium (K⁺)lilac
calcium (Ca²⁺)orange-red
copper (II) (Cu²⁺)blue-green