In this paper we show that every (
P
6, diamond)‐free graph
G satisfies
χ
(
G
)
≤
ω
(
G
)
+
3, where
χ
(
G
) and
ω
(
G
) are the chromatic number and clique number of
G, respectively. Our bound is attained by the complement of the famous 27‐vertex Schläfli graph. Our result unifies previously known results on the existence of linear
χ‐binding functions for several graph classes. Our proof is based on a reduction via the Strong Perfect Graph Theorem to imperfect (
P
6, diamond)‐free graphs, a careful analysis of the structure of those graphs, and a computer search that relies on a well‐known characterization of 3‐colourable
(
P
6
,
K
3
)‐free graphs.