invert-face

invert-face is an interactive compiled Lisp function in `faces.el'.


(invert-face FACE &optional FRAME)

Swap the foreground and background colors of FACE.
If FRAME is omitted or nil, it means change face on all frames.
If FACE specifies neither foreground nor background color,
set its foreground and background to the background and foreground
of the default face. Value is FACE.