Generates color code on green to red scale based on relative value