subcolors function

Make a subcolors according to the mainCol