code: def getColor(name):
      
      try:
          c = getColorInfoList()[getColorList().index(name.upper())]
          return (c[1] / 255., c[2] / 255., c[3] / 255.)
      except:
          return (1, 1, 1)
docs: Retrieve RGB color in PDF format by name.
  
      Returns:
          a triple of floats in range 0 to 1. In case of name-not-found, "white" is returned.