Lithium compounds are used as pyrotechnic colorants and oxidizers in red fireworks and flares. Lithium chloride and lithium bromide are used as desiccants for gas streams. Lithium hydroxide and lithium peroxide are used to remove carbon dioxide and purify the air in spacecrafts and submarines. Lithium hydroxide, lithium peroxide and lithium perchlorate are used in oxygen candles that supply submarines with oxygen.