In fact this is not the case. This is the relationship between wavelength and frequency. Frequency is what defines the color of the light which can vary from an invisible infrared range to the visible range to the invisible ultraviolet range.
F requencyn Wave velocity Frequency Wavelength.
For a given wave since the wave velocity is constant the wavelength becomes inversely proportional to the frequency. It is equal to the velocity of the wave divided by the frequency. The relationship between wavelength frequency and velocity of a wave is given by v f l where f is the frequency of the wave and l is the wavelength. Amplitude Frequency wavelength and velocity are the characteristic of a wave.