Here’s a natural and cost effective solution for this problem.
Aspirin: Powder 1-2 uncoated aspirins in half cup of warm water. Soak the stained area in this solution for about an hour or two and wash the garment as usual.
White Vinegar: You can also use white vinegar for coloured garments. To half a cup of water add 1 tbsp of white vinegar. Soak the garment in the solution for 30 minutes and put it to wash.