Redshift and blueshift can occur across all parts of the electromagnetic spectrum. This includes gamma rays, X-rays, ultraviolet, visible, infrared, and radio waves. The phenomena are related to the relative motion of the light source and the observer and are observable in various contexts throughout the spectrum.