How to change text color based on product variant selection?

As a seller of a diverse range of products available in a variety of colors, I am interested in enhancing the overall user experience for my customers by implementing a feature that allows for the dynamic changing of the text color displayed on the product page. Specifically, when a customer selects a particular color option, not only should the product image change to reflect the selected color, but the color of the text displaying the name of the color should also change to match. This would not only make the product page more visually appealing but also improve the ease of navigation for customers, ensuring they can quickly and easily find the exact product variant they are looking for.

for example, Celestial Blue Text should be in the blueish color :backhand_index_pointing_down: :backhand_index_pointing_down: :backhand_index_pointing_down:

Any recommendations for an app or light coding will be appreciated

Thanks in advance!!!