1 min readMar 3, 2020
If the colour is somewhere predictable, such as a tag with a prefix such as colour_ or always the last single word in the product title/handle.
Then you could use it as a class on the element, instead of showing an image. Then style the box so the background colour matches the name.
Hard to tell without seeing how your product data is structured, do you have a link?