New coumarin based allylidenemalononitrile-aminophenyl conjugated fluorescent dyes having donor-pi-acceptor-donor (D-pi-A-D) system (Dyes 1, 2 and 3) were synthesized and characterized using H-1/C-13-APT NMR and HRMS. Interestingly, dye 3 (diacetamide derivative) was obtained as a mixture of E/Z isomer. Dye 3 was investigated by H-1 NMR within two solvents with different polarity (DMSO-d(6) and Chl-d(1)) and exposed UV irradiation to observe any configurational changes. The absorption and emission properties of the dyes were determined in various solvents with different polarity. The anion sensitivity and selectivity of the dyes were studied with various anions in DMSO, and their interaction mechanisms were evaluated by spectrophotometric and H-1 NMR titration techniques. All three dyes only interacted with cyanide via Michael reaction and the main absorption maxima showed hypsochromic shifts and emission intensity quenched. Moreover, investigation of cyanide sensitivity of the dyes was studied in aqueous media as a mixture of DMSO:water (7:3, v/v). Also, all these results can be detected with the naked eye due to the observed color of the dyes changes from pink to yellow. Additionally, DFT and TDDFT studies were performed to support structural and absorption spectral properties of the dyes.