1. Go to: Admin dashboard > Products > Attributes
2. Create new (or edit) Attribute and select the “Color” value in the “Type” field.
3. Click on “Configure terms” to Attributes items
4. Create new attribute item. You can choose between color style or image pattern
Front-End display
https://demo.yahoothemes.net/product/jersey-pyjama-bottom-demo-variable