I make an astronomical visualization, which illustrates a birth of a planet from a cloud of particles (which i have over 130.000). Each particle, besides xyz-coordinate, has also a temperature value. 
Is it possible to code it like Temperature minimum is green, Temperature maximum is magenta. Dear script, color my particles in scale between green and magenta?
I am working with Python (Blender).
Thank you in advance for any help!
Should I say before t min (32.668837340451788) is green, t max (129.20671163699313) is magenta? So that the script knows, is the value "cold" or "warm".
First particle for example will be almost magenta. 
Here are 4 first particles:

5.28964162682e+14 5.62257206698e+13 -2.9525300544e+14 128.332184907
5.23680422449e+14 9.33982452199e+13 -2.9525300544e+14 128.336966138
3  5.15787732694e+14 1.3010546441e+14 -2.9525300544e+14 128.346633243
5.05325414399e+14 1.66164504722e+14 -2.9525300544e+14 128.355079501
color scale to illustrate the temperature, Python script