Step 1: Understanding afterimages.
After staring at a bright color for a while, the complementary color of the stimulus is perceived when you look at a neutral background. For yellow, the complementary color is violet.
Step 2: Conclusion.
The afterimage of yellow is violet, so the correct answer is (A).