An agent for coloring keratinic fibers, especially human hair, containing in a cosmetic carrier at least one compound of the formula, in which R1, R2 independently of one another stand for hydrogen, a C 1 -C 6 alkyl group, a C 2 -C 6 alkenyl group, a hydroxy group, a C 1 -C 6 alkoxy group, halogen, an amino group, an acetylamino group, a nitro group, or a nitrile group, or, however, R1 and R2, provided they are in an ortho position to one another, form a 5- or 6-membered, saturated or unsaturated, carbocyclic, or heterocyclic ring, X stands for O or N-R3, R3 stands for hydrogen, a C 1 -C 6 alkyl group, a C 2 -C 6 alkenyl group, a C 2 -C 6 hydroxyalkyl group, a C 2 -C 6 polyhydroxyalkyl group, a C 1 -C 6 cyanoalkyl group, an aryl-C 1 -C 6 -alkyl group, or a group -Y'-O-SO 2 -OM, Y, Y' in each case independently of one another stand for (CH 2) n or C 2 H 4 -(OC 2 H 4) n or (CH 2) n -O-(CH 2) m or (CH 2) n -N -(CH 2) m and n and optionally m in each case independently of one another stand for an integer from 1 to 6, A stands for one of the structures to (XIII), where R4, R5 in each case independently of one another stand for hydrogen, a C 1 -C 6 alkyl group, a C 2 -C 6 alkenyl group, a hydroxy group, a C 1 -C 6 alkoxy group, halogen, an amino group, an acetylamino group, a C 1 -C 6 alkylsulfonyl group, or a nitrile group, or R4 and R5, provided they are in an ortho position to one another, form a 5- or 6-membered, saturated or unsaturated, carbocyclic, or heterocyclic ring, R6, R7 independently of one another stand for a C 1 -C 6 alkyl group, a C 2 -C 6 alkenyl group, or a C 2 -C 6 hydroxyalkyl group, R8 stands for hydrogen, a C 1 -C 6 alkyl group, a C 2 -C 6 alkenyl group, or a C 2 -C 6 hydroxyalkyl group, and M stands for hydrogen, an alkali metal, or half an equivalent of an alkaline earth metal. R1, R2 independently of one another stand for hydrogen, a C 1 -C 6 alkyl group, a C 2 -C 6 alkenyl group, a hydroxy group, a C 1 -C 6 alkoxy group, halogen, an amino group, an acetylamino group, a nitro group, or a nitrile group, or, however, R1 and R2, provided they are in an ortho position to one another, form a 5- or 6-membered, saturated or unsaturated, carbocyclic, or heterocyclic ring, X stands for O or N-R3, R3 stands for hydrogen, a C 1 -C 6 alkyl group, a C 2 -C 6 alkenyl group, a C 2 -C 6 hydroxyalkyl group, a C 2 -C 6 polyhydroxyalkyl group, a C 1 -C 6 cyanoalkyl group, an aryl-C 1 -C 6 -alkyl group, or a group -Y'-O-SO 2 -OM, Y, Y' in each case independently of one another stand for (CH 2) n or C 2 H 4 -(OC 2 H 4) n or (CH 2) n -O-(CH 2) m or (CH 2) n -N -(CH 2) m and n and optionally m in each case independently of one another stand for an integer from 1 to 6, A stands for one of the structures to (XIII), where R4, R5 in each case independently of one another stand for hydrogen, a C 1 -C 6 alkyl group, a C 2 -C 6 alkenyl group, a hydroxy group, a C 1 -C 6 alkoxy group, halogen, an amino group, an acetylamino group, a C 1 -C 6 alkylsulfonyl group, or a nitrile group, or R4 and R5, provided they are in an ortho position to one another, form a 5- or 6-membered, saturated or unsaturated, carbocyclic, or heterocyclic ring, R6, R7 independently of one another stand for a C 1 -C 6 alkyl group, a C 2 -C 6 alkenyl group, or a C 2 -C 6 hydroxyalkyl group, R8 stands for hydrogen, a C 1 -C 6 alkyl group, a C 2 -C 6 alkenyl group, or a C 2 -C 6 hydroxyalkyl group, and M stands for hydrogen, an alkali metal, or half an equivalent of an alkaline earth metal.