That's the glorious thing about the rainbow. It contains all (visible) colors. (Obviously the pride flag is limited to stripes of distinct colors, but it's supposed to be representative of everything.)
I guess the flag could be made into a gradient, that would show more of all the possible distinct colours, but that may be impractical to make into actual flags.