According to Wojenski, separating your white clothes from your dark clothes is a tried and true practice that helps prevent any unintentional bleeding of colors, adding that "washing with other colors ...
"It's crucial to separate colors from whites to avoid color transfer. To maintain the brightness of your white clothing ... pre-treat stains before washing them. Also, use diluted bleach wisely.