You could upload 10 images, one for each color of your variable product… or you could be slightly smarter and simply upload 1 “blank” image, and then when the user selects a color trigger a background color change!
Easier to code than to explain, so let’s take a look at the screenshot below (image must be a PNG with transparent background) and the PHP snippet. This could be a time-saver, enjoy!
The final output: background-color switches to “Red” once the “Red” variation is selected.
When yellow is selected
When no variation is selected
PHP Snippet: Switch Featured Image Background Color On Color Variation Select @ Single Product Page