Halide compounds such as Potassium chloride|, Potassium bromide| and Potassium iodide| can be tested with silver nitrate solution, . The halogen will react with  and form a precipitate, with varying colour depending on the halogen:
* Silver(I) fluoride|: no precipitate
* Silver chloride|: white
* Silver bromide|: creamy (pale yellow)
* Silver iodide|: green (yellow)
For organic compounds containing halides, the Beilstein test is used.