nest color functions together inside the palette object