Change colour temperature

Can anyone help me change the colour that corresponds to the temperature?
For example, below 10 = blue
Above 10 = yellow
Above 20 = green, and so on