Fun watching the hacker news commentators try to understand how achromatic (and apochromatic) lenses work. I was utterly confused by this myself when I was a kid. Despite devouring Newton's Opticks I couldn't figure it out.
But it's pretty easy.
The refractive index (bending power) of optical materials varies with wavelength; this is called dispersion.
....