The determination of ultraviolet extinction from the optical and near-infrared