@aandrade1234 Instead of this you can create a configurable product and add the attrbute of type swatch.
Then create the configurations of that configurable product.
Make sure to add some weight while creating configurable product otherwise the associated products created will be of Virtual Type.
Thanks