Converting from RGB to LAB Color Space to Reduce Colors
You should read about LAB Color Space.

Its main advantage on RGB is by having 1 channel dedicated to the Luminosity of the Image and 2 others dedicated to the color information.

This means if you need to process only Luminosity / Color you can do that using LAB without having any effect on Color / Luminosity.