What do you think is responsible for the color produced in the flame, the metal atom or what is attached to the metal atom?
Hint: The metal atom comes first in the formula and the name of the compound.