By breeding different slimes together, the child will have a mix of the parents' colour, with a small chance of natural variation. If the colour is different enough, the slime may gain its own unique drops, for example a yellow slime can drop gold ore.
Is there a full list of distinct colours with different drops? What are all of the known ones?