function rgbVectorToHex (color) {
  return '#' + ['r', 'g', 'b'].map(function (prop) {
    return componentToHex(convertToIntegerColor(color[prop]));
  }).join('');
}
Converts a rgb object into a hex string
@param {object} color { r: 1, g: 1, b: 1 }
@returns {string} hex value #ffffff