Resazurin can be used as one of a series of rapid tests to determine the quality of a milk sample. In this test, resazurin is added as a violet redox dye which turns mauvish-pink due to conversion to resorufin and then to colourless dihydroresorufin. This happens due to lowering of the oxidation-reduction potential in the milk sample caused by presence of bacteria which utilize available oxygen present in the milk for aerobic respiration. The rate of the colour change is used as an index for the number of bacteria present in the milk sample.