The colour change from morphine is proposed to be a result of two molecules of morphine and two molecules of formaldehyde condensing to the dimeric product which is protonated to the oxocarbenium salt.