The rhyme lists: 'Red and yellow and indigo and green / Violet and orange and blue'. Counting these gives seven distinct colors.
Class 3 › English Text Book › Chapter 7: Save Our Water › Topic: Rhyme about rainbow colors
Aligned to the NCTB national curriculum.