I just have seen that (see picture) and I'm wondering what I see there.
It's a little script, showing the status of a SAP server, which is executed by "watch"-cmd in a tmux-box. When I move with the mouse over the word "GREEN", bash shows me a green filled area.
What kind of function is that? How is it named, configured, where is it part of?
I've done a little internet search that gave me no result
OK, it's from the konsole Terminal Emulator of KDE. And it shows some more colours as well, but I have no idea what's the use of it.


Konsole is quite smart, it has integrated many things. In this case, when hovering curses over some text it is showing you the color of that text, so YELLOW shows a yellow box.
You would have to browse KDE konsole source code for that.