Green and yellowish vomit in cats indicates indigestion and bacterial action, and hairballs lead to situations when the cat vomits foam. Throwing up red or brown liquid is caused by the presence of blood in the vomit, which might require urgent veterinarian help. Cases where the cat vomits foam are generally harmless, while others might require professional help.