I couldn't tell if it was a bug or not, but once I added an atmosphere to a planet and it had a purple sunset region even though the sky's color was blue.
I thought it was just some exclusive thing for that planet, but I just spawned an Earth and it seems all blue skies have a purple sunset.