It is not the anions (e.g. iodide) that are responsible for the flame test color, rather the cations such as sodium ion, potassium ion and calcium ion give you different colors.
Lithium flame gives a lilac colour when ignited.
Blue
Pink
All sodium salts will give a yellow flame test, because of the metal sodium in the compounds.
Potassium Iodide is used as a test for oxidising agent. When mixed with the oxidising agent it will turn brown.Example: FluorineIodide is yellow in colour.
The elements contained in this molecule are not able to give a color in the flame.
The color is red.
Lithium flame gives a lilac colour when ignited.
Blue
Pink
nitrogen
green
putek!
All sodium salts will give a yellow flame test, because of the metal sodium in the compounds.
Bright yellow :: This is the sodium ions. Any sodium compound will give a flame test colour of yellow/
Sodium chloride (salt) gives a yellow-orange flame result.
Potassium Iodide is used as a test for oxidising agent. When mixed with the oxidising agent it will turn brown.Example: FluorineIodide is yellow in colour.