RGB -> LabValue memoization