code: def getColorForValue(self, value):
          
          rampIndex = 0
  
          if value >= self.min and value <= self.max:
              rampIndex = self.getIndexForValue(value)
  
          elif value > self.max:
              rampIndex = -1
  
          elif value < self.min:
              rampIndex = 0
  
          return self.getColorForIndex(rampIndex)
docs: Return a color tuple give a value within the range of mapped values
          :param value: Lookup value
          :rtype: tuple of RGB integer values