The present invention relates to a composition for dyeing keratin fibers, comprising (a) at least one direct dye; and (b) at least one oxygen-containing polycyclic compound which has at least one oxygen-containing polycyclic ring. The composition according to the present invention may further include (c) at least one specific sulfone compound. The composition according to the present invention is a one-part composition and can prevent or reduce skin staining by the direct dye on the skin such as the scalp, while providing the keratin fibers with good cosmetic effects such as good coloring properties.