The focal length of the lens varies directly with the wavelength of the light used and as wavelength is inversely related to refractive index, the focal length also varies inversely with it. This is the principal cause of the phenomena of chromatic aberration. The frequency of light has no effect on the focal length.