It's the relativistic Doppler effect which changes the frequency (and wavelength) of light, caused by the relative motion of the source and the observer (as in the classical Doppler effect). Because time stretches in the view of an observer, and so does the wavelength.
replydetachattach picture