Under the Expression Tab, click on the sign which is on the left hand side of the expression. Then you can use the BackGround Color and Text Color options. You can write nested IF statements based on number conditions/colors you wanted to specify. Also, you can use the Pick function to get this working.
I am attaching a screenshot for you reference. I hope this helps!