code: def getColorName(c):
      
      c = np.array(getColor(c))  # reformat to rgb
      mdist = 99.0
      kclosest = ""
      for key in colors.keys():
          ci = np.array(getColor(key))
          d = np.linalg.norm(c - ci)
          if d < mdist:
              mdist = d
              kclosest = str(key)
      return kclosest
docs: Find the name of a color.
  
      .. hint:: |colorpalette| |colorpalette.py|_