Water based dye and pigment