The following shortcode is used to show the result below.

Shortcode:
[woocommerce_attribute_images_attributes product="40" attributes="color"]

Output:

Black
Blue
Grey