scottkellum/color-schemer — pull request #7 by meganox (2012-08-15 12:19:19+00:00)
Title: Fixed incorrect use of invert() in boutet-complement()

Using invert() to get the complementary hue has the effect of also
inverting lightness and saturation. This fix stores the original color's
lightness and saturation and applies them to the adjusted hue.

Hi.

I noticed the boutet-complement function doesn't work quite right. If you set $base-color to something light like #ffe you will see that the secondary and tertiary colors are really dark, which is at odds with the rgb scheme and what you see at http://colorschemedesigner.com. This happens because invert() really does invert the color. The fix simply stores the lightness and saturation values and reapplies them to the hue, which uses the same adjustment method as before.