Given a positive integer t, let Pt and Kt respectively denote the chordless path and the complete graph on t vertices. For a graph G, let chi(G) and w(G) respectively denote the chromatic number and clique number of G. It is known that every (P5, K4)-free graph G satisfies chi (G) <= 5, and the bound is tight. A flag is the graph obtained from a K4 by attaching a pendent vertex. Clearly, the class of flag-free graphs generalizes the class of K4-free graphs. In this paper, we show the following: center dot Every (P5, flag, K5)-free graph G that contains a K4 satisfies chi (G) <= 8. center dot Every (P5, flag, K6)-free graph G satisfies chi(G) <= 8. center dot Every (P5, flag, K7)-free graph G satisfies chi(G) <= 9. We also give examples to show that the given bounds are tight. Further, we show that every (P5, flag)-free graph G with w(G) >= 4 satisfies chi(G) <= max{8, 2w(G) - 3}, and the bound is tight for w(G) is an element of {4, 5, 6}. We note that our bound is an improvement over that given in Dong et al. [3,4].(c) 2023 Elsevier B.V. All rights reserved.