The term has been supposed to originate in a resemblance to the dog tooth violet, but the original idea of a projecting tooth is a sufficient explanation.
From the en.wikipedia.org
So those glorious bands of red, orange, yellow, green, blue, indigo and violet, to a dog become a sad blur of green, blue and a dash of yellow.