Cats are excellent astral projectors! No doubt your cat was aware of what was happening to you and itself jumped astrally off your bed. I use the term "astral" in its broadest sense, as what happened sounds more like an OBE within the RTZ (Real Time Zone).
The astral body can be changed at will, so perhaps your cat had some reason to change its colour; what that reason might have been, it's difficult to say. You will have to ask your cat that telepathically!
When you returned rapidly to the physical, the cat did the same. Hence its colour was as it always has been in the physical: black!
Hope that the above helps.