The present invention provides a composition containing component (A): a compound represented by the formula (1)wherein each symbol is as described in the DESCRIPTION, or a salt thereof, and component (B): an anionic water-soluble m polymer, which suppresses syneresis and aggregation over time, is superior in the maintenance of viscosity in a wide pH range even in the presence of electrolyte or alcohol, and suppresses stickiness and sliminess.