rgba support for selectionPalette

Changed the colorformat in the color palette from hex to rgb, so that selected colors with alphatransparency will be saved correctly.