It’s telling you which direction the car will be traveling. You’ll notice it will follow the road if there is a turn. This reassures you that the car will not go over the lines.
The color, as you noticed, changes with FSD. In FSD the line will tell you which direction, for example, the car will go when reaching a T-intersection. In older FSD versions the line would sometimes dance around as the car would show its uncertainty.