Dyes containing an onium group attached to the dye skeleton via a bridge