Hue Shift Doesn't Work Correctly

I am using the Hue Shift node to rotate the color of a rainbow. I would expect to see a rotation (left), but instead I get this nonsense (right):

I produce the video file on the left with After Effects using the HLS modifier on the texture. On the right, my node setup looks like this:

r/unrealengine - Hue Shift Doesn't Work Correctly

How do I fix this? I want what you see on the left in the video. Here’s the texture if you want to try it for yourself: