code: function getHex(color) {
      var c = [ color[0], color[1], color[2] ].map(function(val) {
          return Math.floor(val * 255);
      });
  
      return "#" + ((c[2] | c[1] << 8 | c[0] << 16) | 1 << 24)
          .toString(16)
          .slice(1)
          .toUpperCase();
  }
docs: Returns html hex representation of given color
  @param  {Array} color  - RGBA color array [r,g,b,a]
  @return {String}       - html hex color including leading hash e.g. #FF0000