On my website, there is a variable called 'x' which represents a percentage. I am looking for a way to assign colors based on this percentage - with 0% being red and 100% being blue. For example, if 'x' is 50%, the color should be a mix of red and blue. If 'x' is 70%, the red intensity should be higher in the color combination, and so on for any other percentage 'x' may provide.