Added snapping to closest lightness when a color is selected so that selected color is within generated luminosity range