The Widom–Rowlinson graph, \(H_{WR}\) , is the fully looped path on three vertices. Let \(\hom (G,H_{WR})\) be the number of graph homomorphisms from G to \(H_{WR}\) or, equivalently, the number of \(H_{WR}\) -colorings of G. We investigate extremal graphs for \(\hom (G,H_{WR})\) for G in the family of k-chromatic graphs subject to various connectivity requirements. In particular, we determine the graphs G maximizing \(\hom (G,H_{WR})\) in the families of n-vertex k-chromatic graphs, n-vertex connected k-chromatic graphs, n-vertex k-chromatic graphs with c components, n-vertex k-chromatic graphs without isolated vertices (for all n, k, c), and n-vertex k-chromatic \(\ell \) -connected, or minimum degree \(\ell \) , graphs (for all k and \(\ell \) , when n is large enough compared to k and \(\ell \) ). Lastly, we determine the graphs G minimizing \(\hom (G,H_{WR})\) in n-vertex k-chromatic graphs and n-vertex graphs with connectivity \(\ell \) (for all \(n,k,\ell \) ), and in n-vertex 2-chromatic graphs with connectivity \(\ell \) (for all \(\ell \) , when n is large enough compared to \(\ell \) ).