This post gives you an example of a color to class index mapping for the targets of a segmentation use case.