Dark-colored clothes should be washed separately from light-colored clothes.
If using a washing machine, put the garment in a laundry bag before washing to avoid damage from metal buttons and drawstrings getting stuck in the washing machine's spinner.