How to programmatically go from #BADA55 to #B0BCA7"

Forked from @HugoGiraudel

See the code in action on SassMeister

Play with this gist on SassMeister.