A colored resin composition using a conventional rhodamine derivative has not provided heat resistance in a practical range. Therefore, it is an object of the present invention to provide a coloring composition having higher heat resistance as compared with the conventional coloring composition.;The present invention relates to a compound represented by the following general formula (1), and a polymer having a monomer unit derived from the compound, and the like.;;(wherein R1 to R4 each independently represent a hydrogen atom, an alkyl group, and the like; R7 represents a hydrogen atom or a methyl group; R8 and R9 each independently represent a hydrogen atom or an alkyl group; Y represents a nitrogen atom or a group represented by the following formula (1-1):;;A1 represents an alkylene group which has at least one group selected from —O—, —OCO—, —COO—, —NHCO—, —CONH—, —NHCONH— and an arylene group in the chain, and the like; A2 represents —NH— or —O—; An− represents an anion