Thread:Mathmagician/@comment-4795804-20130711161919/@comment-4674838-20130712023151

Conventionally speaking, there is no (normal) way of automatically detecting the color. You would have to hard-code the color in your table. Every time you change the color in the Theme Designer, you would need to manually update the color in your table. (This shouldn't be a problem, unless you are planning on changing your wiki's color schemes frequently.)

You could automatically detect the color with JavaScript, however, and in fact there is an existing library created by Pecoes at w:c:dev:Colors that I think will do what you want. You'd have to read the documentation and learn how to use it though.