_BGCOLORNAME — Returns the desktop background color as a W3C color name.

Syntax:
%_BGCOLORNAME

If no matching name is found, the color will be returned in hexadecimal, the same as _BGCOLOR.

rem  Save the current background color:
set backcolor=%_bgcolorname


See also: the BGCOLOR command, which sets or displays the background color; and the _BGCOLOR variable, which reports it as a hexadecimal number.