generate palette to display color in the background