Six symmetrical and unsymmetrical trimethine cyanine dyes bearing benzothiazolyl and benzoxazolyl groups were synthesized. Their linear optical properties were studied. It was found that the variation of hetero atoms play an important role in the spectral properties of the dyes. Sequential replacement of the oxygen atom by the sulfur atom resulted in a change in shade from yellow to purple. In order to understand the relationship between ...