The relationship between infrared, optical, and ultraviolet extinction