Vieira, who had already miscued a number of bad passes in midfield, blocked a run from substitute Phillips and referee Kevin Friend showed no hesitation in pointing to the spot.
Rougier was booked for a foul on Adam Drury as the home side's frustrations grew and Emblen's right-foot shot was blocked by Murty as time began to run out.
The Accies defence then somehow managed to escape going a goal down after Paddy McCourt cut the ball back across the Hamilton goal-line after a mazy run, but Mark McLaughlin blocked the shot from Forrest.