This should be quite a bit quicker than the per pixel overhead of function call converting rgb<->hsl.