$products = new WP_Query( array(
'post_type' => 'product',
'product_cat' => 'slug_category',
'post_status' => 'publish',
'posts_per_page' => -1,
'meta_query' => [[
'key' => '_visibility',
'value' => array('catalog', 'visible'),
'compare' => 'IN',
]],
'tax_query' => [[
'taxonomy' => 'pa_color',
'field' => 'slug',
'terms' => array('blue', 'red', 'green'),
'operator' => 'IN',
]]
) );