How I can get the configurable products attribute options in front end checkout cart page? I have tried with the below answer but can't get any success.
When I have print the
echo "<pre>"; print_r($block->getOptionList()); die;, I am getting the below array result with the label and value but not getting the color code to show as per my custom design.
Array (  => Array ( [label] => Color [value] => Green )  => Array ( [label] => Size [value] => S ) )
Also, I have go through the admin settings like below:
Stores > Configutation > Sales > Checkout > Shopping Cart > Configurable Product Image set as Product Thumbnail Itself
It's also not working in the magento 2.
Please suggest how I can get the color code? Thanks!!!