An aqueous friendly chemosensor derived from vitamin B₆ cofactor for colorimetric sensing of Cu²⁺ and fluorescent turn-off sensing of Fe³⁺.