Converting a value to a colour is well known, I do understand the following two approaches (very well described in changing rgb color values to represent a value)
It depends on the purposes of your datasets.
For example, you can assign a color to each range of values (0-100 - red, 100-200 - green, 200-300 - blue) by changing the brightness within the range.