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, component (B): a water-soluble moisturizing component and component (C): water, as a stable composition which is superior in affinity and adhesion to the skin and hair, easily provides effects as a cosmetic, and is also superior in the sustainability of the effect.