Blot the coffee, use a carpet-approved treatment for beverage stains, rinse residue, and dry the area thoroughly.
Coffee may contain milk, sugar, or flavoring that leaves sticky residue in addition to color.
Do not scrub or saturate the carpet.
A tannin-focused treatment may be appropriate for plain coffee, while protein or oily additives may require additional cleaning steps.
Professional treatment may be needed when the stain has dried or reached the cushion.