Added lightness calculations.