--- rxvt-unicode/src/screen.C 2015/10/13 08:10:43 1.456 +++ rxvt-unicode/src/screen.C 2016/06/21 12:03:56 1.457 @@ -617,7 +617,7 @@ void rxvt_term::scr_color (unsigned int color, int fgbg) NOTHROW { - if (!IN_RANGE_INC (color, minCOLOR, maxTermCOLOR)) + if (!IN_RANGE_INC (color, minCOLOR, maxTermCOLOR24)) color = fgbg; if (fgbg == Color_fg)