<div class="legend" style="direction:ltr;line-height:23px;"><div class="legend-content" style="display:inline-block;vertical-align:top;box-sizing:border-box;width:34px;height:23px;overflow:hidden;font-size:15px;border:thin solid #333;background:#FE8080;color:#202122;text-align:center;"> </div> Term-limited or Retiring Republican</div>
<div class="legend" style="direction:ltr;line-height:23px;"><div class="legend-content" style="display:inline-block;vertical-align:top;box-sizing:border-box;width:34px;height:23px;overflow:hidden;font-size:15px;border:thin solid #333;background:#39F;color:#202122;text-align:center;"> </div> Term-limited or Retiring Democrat</div>
<a href="//commons.wikimedia.org/wiki/User:Kingofthedead" title="User:Kingofthedead">Kingofthedead</a>
CC BY-SA 4.0
<a href="//commons.wikimedia.org/wiki/File:2017_gubernatorial_races.png" title="File:2017 gubernatorial races.png">File:2017 gubernatorial races.png</a>