A method for producing a compound represented by the following Formula (IV), wherein, when the hydroxylamine portion is introduced, an alkali except for the hydroxylamines is present in an amount which is equal to or more than the neutralization amount for the reaction system:
- X-(L1′)n-Y3 Formula (IV)
- wherein X represents one of a five-, six- or seven-membered heterocycle having, as constitutents of its ring structure, three or more heteroatoms;
- a five-, six- or seven-membered heterocycle which has a quaternary nitrogen atom and is represented by the following “a”;
- a five-, six- or seven-membered heterocycle which includes nitrogen and has a thioxo group and is represented by the following “b”;
- a five-, six-, or seven-membered heterocycle which includes nitrogen and is represented by the following “c”;
- and a five-, six-, or seven-membered heterocycle which includes nitrogen and is represented by the following “d” or “e”
- wherein Z represents an atomic group required to form a nitrogen-containing five-, six- or seven-membered heterocycle;
- R1 represents an alkyl group, an alkenyl group or an alkynyl group;
- L1, and L2 respectively represents a methine group;
- and n2 represents 0, 1 or 2,
- n denotes an integer of 0 to 1;
- L1′ represents a divalent connecting group, provided that the atom of L1′ which is directly connected to Y3 is a carbon atom, Y3 is any group selected from the groups represented by the following (B1) to (B4);
- and Rb1, Rb2 and Rb3 in the groups represented by the following (B1) to (B4) respectively represents one of a hydrogen atom, an alkyl group, an alkenyl group, an alkynyl group, an aryl group and a heterocyclic group, provided that when Y3 is a group represented by (B1), n is 1 and L1′ is a heterocyclic group having a divalent carbon atom directly connected Y3, and when Y3 is a group represented by (B2) and Rb1 is a hydrogen atom, n is 1 and L1′ has a carbon atom which is directly connected to Y3, which carbon atom is part of an alkylene group or —CO— in L1′