Replaced raphael's rgb2hsb to Tinycolor's toHsv