WooCommerce Attribute Swatches by IconicWP is a premium plugin that lets you attach colors or images to your WooCommerce product attributes.

With this plugin activated, you can use a Color facet to filter products by color.

When adding a Color facet, set its Data Source to the product attribute containing your custom color/image swatch.

This plugin works similarly to Variation Swatches for WooCommerce.

See also