A quasar-galaxy mixing diagram: Quasar spectral energy distribution shapes in the optical to near-infrared