The visible and ultraviolet spectra of d6-, d7- and d8-metal ions in trigonal bipyramidal complexes