Flame test colors are used to identify different elements, with distinct hues like strontium's red, copper's blue-green, and potassium's purple.