 rgb2hex = () ->
     [r,g,b] = unpack arguments
     u = r << 16 | g << 8 | b
-    str = "000000" + u.toString(16).toUpperCase()
+    str = "000000" + u.toString(16) #.toUpperCase()
     "#" + str.substr(str.length - 6)
 
 

        else
            throw "color mode "+m+" is not supported"

    darken: (amount=0.2) ->
        me = @
        lch = me.lch()
        lch[2] -= amount
        chroma.lch lch


hex2rgb = (hex) ->


    hsi: ->
        rgb2hsi @_rgb

    name: ->
        h = @hex()
        for k of chroma.colors
            if h == chroma.colors[k]
                return k
        h

    interpolate: (f, col, m) ->
        ###
