but that's only 5
and roy g biv is dumb
if you're fine with not doing a rainbow just alternate two colors or something, or do red, orange, yellow, green, blue, purple. that gathers more of the hue variance of the spectrum anyway (at least imo, maybe there's some scientific way to define that?)