code: def color_ramp(number_of_colour):
      
      if number_of_colour < 1:
          raise Exception('The number of colours should be > 0')
  
      colors = []
      if number_of_colour == 1:
          hue_interval = 1
      else:
          hue_interval = 1.0 / (number_of_colour - 1)
      for i in range(number_of_colour):
          hue = (i * hue_interval) / 3
          light = 127.5
          saturation = -1.007905138339921
          rgb = colorsys.hls_to_rgb(hue, light, saturation)
          hex_color = '#%02x%02x%02x' % (int(rgb[0]), int(rgb[1]), int(rgb[2]))
          colors.append(hex_color)
      return colors
docs: Generate list of color in hexadecimal.
  
      This will generate colors using hsl model by playing around with the hue
      see: https://coderwall.com/p/dvsxwg/smoothly-transition-from-green-to-red
  
      :param number_of_colour: The number of intervals between R and G spectrum.
      :type number_of_colour: int
  
      :returns: List of color.
      :rtype: list