Save color palette in a list and check for correct length