Fixing hsl calculation (making in/out consistent)