Another option could be to define some colours to use and use a select field. (in other words, a select field with values like 'green', 'blue', 'red' etc. This approach is probably easier and you can just add the selection as a class in you browser view.
i thought about using the colorpicker, but how can i associate the field with the color of the background of the portlet? i have made changes to theme css for global styles, but i need that the new portlet type use the color selected this is here were i get lost.