palette class