setting background colour from pallette param