This invention relates to the use of modified galactomannans in a hair composition for protecting dyed hair color from fading and to a method for protecting dyed hair color from fading by treating said hair with a hair composition containing a modified galactomannan.