A process for dyeing of a fiber material containing hydroxy or carboxamido groups, or hydroxy and carboxamido groups, with a water-soluble fiber-reactive dye, which comprises contacting said fiber material with a dye solution, dye liquor or printing paste which contains electrolytes in an amount of from 0 to 10 g/1 and has a pH range of between 4 and 8 wherein said fiber material has been pretreated and modified at a pH of between 10 and 14 with a compound of the formula (1) ##STR22## in which R.sup.A is hydrogen or alkyl of 1 to 3 carbon atoms, unsubstituted or substituted by hydroxy or a group of the formula (2) or (3) ##STR23## in which R.sup.1 is hydrogen, methyl or ethyl,
- R.sup.2 is hydrogen, methyl or ethyl, and
- R.sup.3 is hydrogen, methyl or ethyl, or
- R.sup.1 and R.sup.2 together with the nitrogen atom are a saturated heterocyclic radical formed by an alkylone of 5 to 8 carbon atoms or by two alkylenes of 1 to 4 carbon atoms and an oxygen or an amino of the formula --NH--, and
- Z.sup.(.) is an anion;
- R.sup.B has one of the meanings given for R.sup.A ;
- given for R.sup.A ;
- X is a group --O-- or --NH--;
- containing at least one primary, secondary or tertiary amine group or quaternary ammonium group as a substituent to the cyclus or forming a part of said ring, or being both.