Magento Open Source 2.2.x
Creating Swatches

Swatches can be defined as a component of the color attributeA characteristic or property of a product; anything that describes a product. Examples of product attributes include color, size, weight, and price., or set up locally for a specific product as uploaded product images.

In the following examples, the Sylvia Capris are available in specific values of red, green, and blue. Because the swatches were taken from the product image, each is a true representation of the color. The color attribute is used to manage the information for all product colors and swatches.