Replicating iTunes 11’s color matching algorithm

Wade at Panic did an experiment and included an Xcode demo project that you can download.