Barium chlorate in some sodium contamination, which is undesirable for pyrotechnic purposes, where the strong yellow of sodium can easily overpower the green of barium. Sodium-free barium chlorate can be produced directly through electrolysis: It can also be produced by the reaction of barium carbonate with boiling ammonium chlorate solution: The reaction initially produces barium chlorate and ammonium carbonate; boiling the solution decomposes the ammonium carbonate and drives off the resulting ammonia and carbon dioxide, leaving only barium chlorate in solution. When exposed to heat, barium chlorate alone will decompose to barium chloride and oxygen: Barium chlorate is used to produce chloric
Potassium perchlorate the necessary confinement. Otherwise such mixtures simply deflagrate with an intense purple flame characteristic of potassium. Flash compositions used in firecrackers usually consist of a mixture of aluminium powder and potassium perchlorate. This mixture, sometimes called flash powder, is also used in ground and air fireworks. As an oxidizer, potassium perchlorate can be used safely in the presence of sulfur, whereas potassium chlorate cannot. The greater reactivity of chlorate is typical – perchlorates are kinetically poorer oxidants. Chlorate produces chloric acid, which is highly unstable and can lead to premature ignition of the composition. Correspondingly, perchloric acid is quite stable.