Show a preview on hexadecimal colors

I wonder if it’s feasible to have a plugin so that a small preview can be shown whenever there’s a hexadecimal color written.
Obsidian actually recognizes hexa colors as tags (I’ve seen it has been suggested that it does not so in this topic → Don't treat hexadecimal numbers as tags) but whether that’s the case or not, it would be nice to at least se a preview of that color.
Thanks a lot!