aftermarket cooler with my motherboard?

Solution
HP doesn't provide the usual PC case spec's. I would guess that it would be fine. The Hyper 212 Evo requires 159 mm of space above the motherboard. You can measure that inside your case to be sure.