A fishes color will lighten when diseased, startled or stressed, and also on most fish color will fade when they are resting or sleeping, this effectively makes them harder for predatory fish to see during resting periods.
My green barb does the same thing... pale when the light is out and dark emerald green after "morning".