returns a lightened hex string. amount is a value in the range [0, 1]
amount
[0, 1]
String lightenHex(num amount, String hex) { var rgb = hex2rgb(hex); var ligthen = lightenRgb(amount, rgb); return rgb2hex(ligthen); }