Why is fire orange?

Colour of fire depends on its temperature. Heat energy ionises atoms by exciting the electrons in them. When electrons emit energy they fall back into their lower energy states emitting energy of frequency f (E=hf), in this case it would be the frequency of orange light. As a fire gets hotter E increases causing light of a higher frequency to be emitted.