A three-wavelength coherent-modulation-imaging (CMI) technique is proposed to simultaneously measure the fundamental, second and third harmonics of a laser driver in one snapshot. Laser beams at three wavelengths (1053 nm, 526.5 nm and 351 nm) were simultaneously incident on a random phase plate to generate hybrid diffraction patterns, and a modified CMI algorithm was adopted to reconstruct the complex amplitude of each wavelength from one diffraction intensity frame. The validity of this proposed technique was verified using both numerical simulation and experimental analyses. Compared to commonly used measurement methods, this proposed method has several advantages, including a compact structure, convenient operation and high accuracy.