Let A be the infinitesimal generator of a strongly continuous contraction semigroup in a Hilbert space H. We give an upper estimate for the best approximation of the operator A by bounded linear operators with a prescribed norm in the space H on the class Q2 = {x ∈ D(A2) : ||A2x|| < 1}, where D(A2) denotes the domain of A2.