A
flame test is an analytic procedure used in
chemistry to detect the presence of certain elements, primarily
metal ions, based on each
element's characteristic
emission spectrum. The color of
flames in general also depends on temperature; see flame color.