the main colors are
red
orange
yellow
green
blue or indigo
violet
so there are 6-7 colors in a rainbow