code: def color_diff(rgb1, rgb2):
      
      import numpy as np
      from skimage.color import rgb2lab, deltaE_cmc
  
      rgb1 = np.array(rgb1, dtype="float64").reshape(1, 1, 3) / 255.
      rgb2 = np.array(rgb2, dtype="float64").reshape(1, 1, 3) / 255.
      lab1 = rgb2lab(rgb1)
      lab2 = rgb2lab(rgb2)
      return deltaE_cmc(lab1, lab2, kL=2, kC=1)[0, 0]
docs: Calculate distance between two RGB colors. See discussion:
  
      http://stackoverflow.com/questions/8863810/python-find-similar-colors-best-way
  
      - for basic / fast calculations, you can use dE76 but beware of its problems
      - for graphics arts use we recommend dE94 and perhaps dE-CMC 2:1
      - for textiles use dE-CMC