RTE Heading colors pulled from CMS field

I’d like to connect my H1, H2, H3, etc colors to pull dynamically from a color field in a CMS Collection. Is this possible?

My client’s blog has 3 categories, I’m using 3 colors to differentiate between the blog categories for design elements such as text, background colors, and other highlights. I’d love to be able to connect the RTE Heading fields for the blog summary section to these same colors (pulling from the CMS blog category collection) to create a consistent color scheme throughout each blog category.

Any advice or potential workarounds would be helpful! Thanks in advance!

Here is my public share link: public share link