I would like to use the color code, e.g. #262730 from an altair object for later usage in html code outside the chart.
E.g the following code creates a legend beneath my main chart:
chart = alt.Chart(df).mark_point().encode(
y=alt.Y(f'{color_item}:N', axis=alt.Axis(orient='right')),
color=alt.Color(f'{color_item}:N',)
)

Later on I would like to use the color for a heading, e.g.:
<h2 style="color:262730#";>%util</h2>
Is there any way to achieve that?