using 2.2.7
please check the command again - perhaps there is a little bug
when player get the permission colouredchat.name.rainbow - his name is rainbow
when he do /color reset - name is blue
if the player try to enable rainbow again with /color rainbow or /colour rainbow

but name is still blue, he cant reactivate rainbow name color