They can be used only with soft water.
Detergents are made up of raw materials like fats or kerosene. They can be used with both soft and hard water