It's due to the "trigonal bipyramidal" lattice structure. By changing atoms in the structure, they've created pigments with a range of colors. https://ws680.nist.gov/publication/get_pdf.cfm?pub_id=921441
This article also talks of the three other variants for different colours