A compound represented by the following general formula: wherein R 1 to R 4 each independently represent a hydrogen atom; an alkyl group having 1 to 30 carbon atoms; a hydroxyalkyl group having 1 to 6 carbon atoms; a sulfoalkyl group having 1 to 6 carbon atoms; a carboxyalkyl group having 2 to 7 carbon atoms; a cyanoalkyl group having 2 to 7 carbon atoms; an alkoxyalkyl group having 2 to 6 carbon atoms; a halogenated alkyl group having 1 to 6 carbon atoms; a phenyl group having a substituent selected from the group consisting of an alkyl group having 1 to 6 carbon atoms, a halogen atom, an alkoxy group having 1 to 6 carbon atoms, a hydroxyalkyl group having 1 to 6 carbon atoms, an alkoxyalkyl group having 2 to 7 carbon atoms, a hydroxyalkoxy group having 1 to 6 carbon atoms, an alkoxyalkoxy group having 2 to 7 carbon atoms, a sulfoalkyl group having 1 to 6 carbon atoms, a carboxyalkyl group having 2 to 7 carbon atoms, a cyanoalkyl group having 2 to 7 carbon atom, and a sulfo group, or not having a substituent; or a benzyl group having a substituent selected from the group consisting of an alkyl group having 1 to 6 carbon atoms, a halogen atom, an alkoxy group having 1 to 6 carbon atoms, a hydroxyalkyl group having 1 to 6 carbon atoms, an alkoxyalkyl group having 2 to 7 carbon atoms, a hydroxyalkoxy group having 1 to 6 carbon atoms, an alkoxyalkoxy group having 2 to 7 carbon atoms, a sulfoalkyl group having 1 to 6 carbon atoms, a carboxyalkyl group having 2 to 7 carbon atoms, a cyanoalkyl group having 2 to 7 carbon atom, and a sulfo group, or not having a substituent; R 7 represents a hydrogen atom or a methyl group; R 8 represents a hydrogen atom or an alkyl group having 1 to 30 carbon atoms; R 9 represents a hydrogen atom or an alkyl group having 1 to 6 carbon atoms; Y represents a nitrogen atom or the group represented by the following formula: A 1 represents an alkylene group having 1 to 21 carbon atoms which has at least one group selected from -O-, -OCO-, -COO-, -NHCO-, -CONH-, -NHCONH- and an arylene group in the chain; an alkylene group having 1 to 21 carbon atoms which has at least one group selected from -O-, -OCO-, -COO-, -NHCO-, -CONH-, -NHCONH- and an arylene group in the chain, and also has a hydroxy group as a substituent; an alkylene group having 1 to 21 carbon atoms which has a hydroxy group as a substituent; or an alkylene group having 1 to 21 carbon atoms; A 2 represents -NH- or -O-; An - represents an anion containing an aryl group having an a halogen atom, a sulfonyl group having a halogen atom, or a halogenated alkyl group; n represents an integer of 0 to 3; R 8 and R 9 may form a cyclic structure of a 5 to 6 membered ring together with -N-(CH 2) n -Y- bonding thereto. wherein R 1 to R 4 each independently represent a hydrogen atom; an alkyl group having 1 to 30 carbon atoms; a hydroxyalkyl group having 1 to 6 carbon atoms; a sulfoalkyl group having 1 to 6 carbon atoms; a carboxyalkyl group having 2 to 7 carbon atoms; a cyanoalkyl group having 2 to 7 carbon atoms; an alkoxyalkyl group having 2 to 6 carbon atoms; a halogenated alkyl group having 1 to 6 carbon atoms; a phenyl group having a substituent selected from the group consisting of an alkyl group having 1 to 6 carbon atoms, a halogen atom, an alkoxy group having 1 to 6 carbon atoms, a hydroxyalkyl group having 1 to 6 carbon atoms, an alkoxyalkyl group having 2 to 7 carbon atoms, a hydroxyalkoxy group having 1 to 6 carbon atoms, an alkoxyalkoxy group having 2 to 7 carbon atoms, a sulfoalkyl group having 1 to 6 carbon atoms, a carboxyalkyl group having 2 to 7 carbon atoms, a cyanoalkyl group having 2 to 7 carbon atom, and a sulfo group, or not having a substituent; or a benzyl group having a substituent selected from the group consisting of an alkyl group having 1 to 6 carbon atoms, a halogen atom, an alkoxy group having 1 to 6 carbon atoms, a hydroxyalkyl group having 1 to 6 carbon atoms, an alkoxyalkyl group having 2 to 7 carbon atoms, a hydroxyalkoxy group having 1 to 6 carbon atoms, an alkoxyalkoxy group having 2 to 7 carbon atoms, a sulfoalkyl group having 1 to 6 carbon atoms, a carboxyalkyl group having 2 to 7 carbon atoms, a cyanoalkyl group having 2 to 7 carbon atom, and a sulfo group, or not having a substituent; R 7 represents a hydrogen atom or a methyl group; R 8 represents a hydrogen atom or an alkyl group having 1 to 30 carbon atoms; R 9 represents a hydrogen atom or an alkyl group having 1 to 6 carbon atoms; Y represents a nitrogen atom or the group represented by the following formula: A 1 represents an alkylene group having 1 to 21 carbon atoms which has at least one group selected from -O-, -OCO-, -COO-, -NHCO-, -CONH-, -NHCONH- and an arylene group in the chain; an alkylene group having 1 to 21 carbon atoms which has at least one group selected from -O-, -OCO-, -COO-, -NHCO-, -CONH-, -NHCONH- and an arylene group in the chain, and also has a hydroxy group as a substituent; an alkylene group having 1 to 21 carbon atoms which has a hydroxy group as a substituent; or an alkylene group having 1 to 21 carbon atoms; A 2 represents -NH- or -O-; An - represents an anion containing an aryl group having an a halogen atom, a sulfonyl group having a halogen atom, or a halogenated alkyl group; n represents an integer of 0 to 3; R 8 and R 9 may form a cyclic structure of a 5 to 6 membered ring together with -N-(CH 2) n -Y- bonding thereto.