The \whiteout command puts a white background behind a given markup text.
\whiteout
This snippet shows an easy way to do this with any color.
White text on black background can simply be created by \with-color #white \on-color #black
\with-color #white \on-color #black