If the color of the vomit is transparent or white and thin, this is gastric juice, which is the gastric acid secreted by the stomach. This type of vomiting is most common in acute gastritis.
If the color of the vomitus is yellowish-greenish, it means that bile has been vomited out. Usually when you see vomiting of this color, you need to see a doctor.