Spectroscopy and calculations for 4f(N) → 4f(N-1)5d transitions of lanthanide ions in K3YF6.