Chlorine water on standing loses its yellow colour due to the formation of:
Both HCl and HOCl
Chlorine water loses its yellow colour due to the formation of HCl and HOCl.
The Hypochlorous acid so formed gives nascent oxygen which is responsible for oxidizing and bleaching properties of chlorine.