Compass is no longer actively maintained. Compass is a Stylesheet Authoring Environment that makes your website design simpler to implement and easier to maintain.
Right now contrast-color($color) uses lightness from the hsl value to figure out what a good contrasting color would be. The problem is that some colors are perceived as darker than others, so you end up with inconsistent readability if used to calculate font color.
W3C suggests that you use YIQ's luma value (the Y) to calculate contrasting colors. This calculates the perceived brightness by the human eye.
I've created an example to show how it's more accurate in calculating a contrasting color.
Right now contrast-color($color) uses lightness from the hsl value to figure out what a good contrasting color would be. The problem is that some colors are perceived as darker than others, so you end up with inconsistent readability if used to calculate font color.
W3C suggests that you use YIQ's luma value (the Y) to calculate contrasting colors. This calculates the perceived brightness by the human eye.
I've created an example to show how it's more accurate in calculating a contrasting color.
Gist Codepen Example
Thoughts?