Stains are not always permanent, but you must act quickly to have any chance of removing a new stain from any piece of clothing or linen.
There is no exact science or one simple solution to stain removal and it does take a bit of patience and care to beat them. Be gentle as the more you rub the more you work it in and generally initially/pre treat in colder water, never hot.
You can always use an off the shelf stain remover but despite the commercials we find these are bit hit and miss and can sometimes be a little harsh on fabric. These tips are a little more “home remedy” focused with what you might have readily and cheaply available.