How to make interface for add-on with mutipule colorpickers
import bpy

class ColorItem(bpy.types.PropertyGroup):
    color = bpy.props.FloatVectorProperty(
                 name = "Color Picker",
                 subtype = "COLOR",
                 size = 4,
                 min = 0.0,
                 max = 1.0,
                 default = (0.75,0.0,0.8,1.0)
                 )

class ColorPanel(bpy.types.Panel):
    """Creates a Panel in the Scene properties window"""
    bl_label = "Colors"
    bl_idname = "SCENE_PT_colors"
    bl_space_type = 'PROPERTIES'
    bl_region_type = 'WINDOW'
    bl_context = "scene"

    def draw(self, context):
        for i in range(5):
            row = self.layout.row()
            row.prop(context.scene.colors[i], "color", text=str(i))

def register():
    bpy.utils.register_class(ColorPanel)
    bpy.utils.register_class(ColorItem)
    bpy.types.Scene.colors = \
        bpy.props.CollectionProperty(type=ColorItem)

    for i in range(5):   
        bpy.context.scene.colors.add()

def unregister():
    bpy.utils.unregister_class(ColorPanel)
    bpy.utils.unregister_class(ColorItem)
    del bpy.types.Scene.colors

if __name__ == "__main__":
    register()


Adapted the SimplePanel Template to show 5 color pickers. Access and set their values via 

bpy.context.scene.colors[index].color = (0.0, 0.0, 0.0, 1.0)






Additional infos:

Here is the link to the official  api documentation. In the section quickstart introduction you will find an example of an operator. 

You can find a template in the text editor -> Templates -> Python -> SimpleOperator.


In your case you simply wrap your code in a function which will be called from the operators execute method:

def main(context):
    context.scene.color_prop.h += 0.125
    context.scene.color_prop.h %= 1.0
    #...


Define an operator (see the SimpleOperator template), and extend the panel's draw method:

def draw(self, context):
    #...
    row = self.layout.row()
    row.operator("object.simple_operator")


Here is a full listing copy &amp; pasted together.

These sections #1, #2 from the docs might be helpful.