Create spiral out of circle
Create a simple mesh composed of only one edge progressing along the X or Y axis.

Add a Screw modifier to it, adjust properties as desired, mainly the Steps for smoothness, Screw for height, and Iterations for number of turns.



To assign different colors to your mesh you will have to apply the modifier though, then create multiple Material Slots, assign them to the desired faces, then create your colors as desired.