A resin composition containing at least one compound (A) selected from compounds of formulas (I) (II) wherein R1 and R2 each denote a hydrogen atom, halogen atom, or alkyl or alkoxy group having 1 to 10 carbon atoms, +TR R3 denotes a hydrogen atom, alkyl group containing 1 to 10 carbon atoms, naphthyl group or substituent of formula wherein R4 to R8, which may be the same or different, each denote a hydrogen atom, halogen atom, nitro group and alkyl or alkoxy group having 1 to 10 carbon atoms.