Disclosed are compounds of formula I, STR1 in which either R1, R2 and R3, which may be the same or different, each signifies a hydrogen atom, a chlorine or fluorine atom, an alkyl radical of 1 to 4 carbon atoms, an alkoxy radical of 1 to 4 carbon atoms, a cyano group, a group --SO3 M, an unsubstituted phenyl radical or a phenyl radical substituted by up to 2 substituents selected from chlorine, fluorine, alkyl of 1 to 4 carbon atoms, alkoxy of 1 to 4 carbon atoms and the group --SO3 M, with the proviso that only one of R1, R2 and R3 signifies an unsubstituted or substituted phenyl radical Or two of R1 , R2 and R3, together, form a methylenedioxy group, the other of R1, R2 and R3 having one of the above significances, R4 signifies a hydrogen atom, a chlorine or fluorine atom, an alkyl radical of 1 to 4 carbon atoms or an alkoxy radical of 1 to 4 carbon atoms, R5 signifies a hydrogen atom, an alkyl radical of 1 to 4 carbon atoms, an unsubstituted phenyl radical or a phenyl radical substituted by 1 or 2 substituents selected from chlorine, fluorine, alkyl of 1 to 4 carbon atoms, alkoxy of 1 to 4 carbon atoms and the group --SO3 M, R14 signifies an alkyl radical of 1 to 8 carbon atoms, A1 signifies a C1 to C3 alkylene chain, unsubstituted or substituted by up to two alkyl groups of 1 to 4 carbon atoms, Y signifies --O-- or --NR6 --, in which R6 signifies a hydrogen atom or an alkyl radical of 1 to 4 carbon atoms, Q signifies STR2 in which either R18 and R19, which may be the same or different, each signifies a hydrogen atom or an alkyl radical of 1 to 4 carbon atoms, or one of R18 or R19, together with R6, signifies an ethylene bridge, the other signifying a hydrogen atom or alkyl radical of 1 to 4 carbon atoms, Or Q signifies --SO3 M, or Q signifies --SR21 or --SR22≈ R23 An?, in which R21 signifies an alkyl radical of 1 to 4 carbon atoms, unsubstituted or substituted by a hydroxy radical or an alkoxy radical of 1 to 4 carbon atoms; or a phenyl or cycloalkyl radical of 5 to 7 carbon atoms, each unsubstituted or substituted by up to 2 substituents selected from chlorine, fluorine, C1-4 alkyl and C1-4 alkoxy, R22 and R23, which may be the same or different, each have a significance of R21, above, with the proviso that both do not simultaneously signify unsubstituted or substituted phenyl or cycloalkyl radicals, A2 signifies a C1 to C3 alkylene chain, unsubstituted or substituted by up to two alkyl groupsof 1 to 4 carbon atoms; or a phenylene group, unsubstituted or substituted by up to 2 substituents selected from chlorine, fluorine, alkyl of 1 to 4 carbon atoms, alkoxy of 1 to 4 carbon atoms and the group --SO3 M, An≈ signifies a colorless organic or inorganic anion, and the M's, which may be the same or different, each signifies a hydrogen atom, or a non-chromophoric cation, which compounds, where Q signifies STR3 may be in quaternary ammonium salt form or in acid addition salt form, their production and use as optical brightening agents.