You have to separate dark clothes from white clothes because if you don’t the white clothes will turn colors.
It is possible that the dyes may come out of dark clothes when they are washed and if this happens this dye can stain any light clothes that are sharing the washing water. Thus to keep your whites white, you need to make sure that you wash them separately form the dark stuff. ….. If you don’t you may end up with pink pants!.