code: function cam02de(coefs) {
    return function(o) {
      if (!(o instanceof Jab)) o = jabConvert(o);
  
      var k_l = coefs.k_l,
          diffJ = Math.abs(this.J - o.J),
          diffA = Math.abs(this.a - o.a),
          diffB = Math.abs(this.b - o.b);
  
      var de = Math.sqrt( (diffJ/k_l)*(diffJ/k_l) + diffA*diffA + diffB*diffB );
  
      return de;
    };
  }
docs: DE color distance function generator for the three CAM02 perceptually uniform models: lcd, scd, and ucs