A connector isn’t a connector isn’t a connector. In the photo below, the original PCB was designed to have an unshrouded breakaway header, as shown in the inset on the right. I measured it. The entire header fits within the silkscreen outline.
However, as you can see, a shrouded header was used in that spot. While as designed, there was plenty of clearance between the header and the two capacitors and resister, the shroud for the substituted header covers all of the resistor and half of the capacitors.
You can prototype it this way, but it will never fly in production.
Find the ghosts of Dawnstar
Even if the part used was unshrouded, the silkscreen outline/ keepout should account for the header AS MATED to the mating socket – from the looks of it, that requirement *might* not be met if conventional IDC wiremount sockets are to be used …