Changing color according to data

I can shoot the color code, but it gives an error, as in the image, does not change the background