Use solids for each color. Trim them to the duration you want. Use AE's sequence layers command. If you want more than one iteration of the color sequence, duplicate the layers and move them down the timeline.

Then parent all the layers to the FIRST layer. Position the first layer where you want it in the comp. TThe rest go with it. Then render as an alpha channeled movie.