Color ramp node resets one color when rendering
@FFeller's comment was completely right!

Somehow, a key frame was created on that first color. After deleting it (right mouse button click on the color), the original color is used and it doesn't turn black on rendering.