Jamie Hamill's penalty rescued a point for 10-man Hearts against Aberdeen, and delayed relegation to the Championship for at least another few days.

The Tynecastle side had matched the visitors but when Danny Wilson was sent off for a second yellow card there looked likely to be only one outcome.

Willo Flood fired the resulting free-kick into the bottom corner.

But Hearts roared back when Shaleum Logan fouled Callum Paterson inside the area and Hamill fired home.

The gap between bottom side Hearts, who started the season with a 15-point deduction for being in administration, and St Mirren now stands at 18 points with six matches to play.

Hearts visit Partick Thistle on Saturday and anything less than a win will confirm demotion for Gary Locke's side, an outcome that would also be confirmed if St Mirren avoid defeat against Motherwell.

Aberdeen reclaim second place in the Scottish Premiership but are only ahead of Motherwell on goal difference.

The Dons top scorer Niall McGinn, buoyed by his first goal in three months in Saturday's 1-1 with Dundee United, started the game with a spring in his step and tested Jamie MacDonald with an early chance.

That was the only shot on target the Hearts goalkeeper had to deal with for some time, despite the best efforts of the returning Peter Pawlett, who was proving to be a handful.

The visitors slowly began to take control with three good chances in a dominant five-minute spell.

Danny Wilson was sent off as Hearts drew 1-1 with Aberdeen

Wilson (second from right) was sent off for a second booking with under 20 minutes to go

Adam Rooney was first to be denied by MacDonald from close range before the Irish striker's knock-down opened up the opportunity for Pawlett, a shot which was deflected over.

McGinn's free-kick hit the wall, but the rebound fell to him and his second effort was better, just whistling past.

Ryan Stevenson headed a free-kick wide as the home side tried their luck at the other end, and they started the second half as the better team after manager Locke switched Paul McCallum for Scott Robinson.

David Smith and Sam Nicholson were looking dangerous in particular, and the home side also managed to quieten the threat of Pawlett, who was eventually hooked.

MacDonald had to be sharp off his line though to deny Rooney after good work from Ryan Jack, then Paterson had to block Barry Robson's shot.

Back came the hosts. Paterson hit a powerful shot which Langfield had to tip wide, but Aberdeen bared their teeth again when Rooney sent an overhead kick over the bar.

Just as Hearts looked like they were Aberdeen's equal, their plans were thrown into disarray when Wilson was given a second yellow card for hauling back Rooney.

They had no time to re-adjust, with Flood guiding the free-kick into the net to give the Dons the lead.

Hearts could have drawn themselves level when the ball fell invitingly to Stevenson after a rare error from Mark Reynolds, but he blasted his shot over.

However, they were handed a lifeline when Logan brought down Paterson.

With relegation minutes from being confirmed, Hamill stepped up and drove home the penalty to send Tynecastle wild.

Aberdeen attempted a late rally and McGinn twice sent shots wide, but Hearts deservedly hung on to remain unbeaten at home against the Dons since 2010.

Lineup, Bookings (7) & Substitutions (5)

Heart of Midlothian

  • 01 MacDonald
  • 12 Paterson
  • 03 McHattie
  • 15 Holt
  • 05 McGowan
  • 04 Wilson Dismissed after an earlier booking
  • 17 Smith Booked (King - 69' )
  • 02 Hamill
  • 09 McCallum Booked (Robinson - 45' )
  • 07 Stevenson
  • 28 Nicholson (McKay - 73' )

Substitutes

  • 08 Robinson
  • 13 Ridgers
  • 14 Walker
  • 16 McKay
  • 19 King
  • 29 Oliver
  • 30 McGhee

Aberdeen

  • 01 Langfield
  • 29 Logan Booked
  • 05 Considine
  • 08 Flood
  • 04 Anderson
  • 06 Reynolds
  • 15 Robson (Smith - 70' )
  • 22 Jack Booked
  • 10 McGinn
  • 16 Pawlett Booked (Vernon - 78' )
  • 17 Rooney

Substitutes

  • 02 Shaughnessy
  • 09 Vernon
  • 14 Smith
  • 18 Low
  • 20 Weaver
  • 24 McManus
  • 28 Tate
Ref: Kevin Clancy
Att: 13,913

Match Stats

Shots

9 11

On target

3 2

Corners

6 3

Fouls

18 16

Live Text Commentary

Full time

Full Time Match ends, Hearts 1, Aberdeen 1.

90:00 +3:06 Full time

Full Time Second Half ends, Hearts 1, Aberdeen 1.

90:00 +2:26

Russell Anderson (Aberdeen) wins a free kick in the attacking half.

90:00 +2:26

Foul by Brad McKay (Hearts).

90:00 +2:02

Foul by Russell Anderson (Aberdeen).

90:00 +2:02

Ryan Stevenson (Hearts) wins a free kick on the left wing.

90:00 +0:56

Attempt missed. Niall McGinn (Aberdeen) right footed shot from the centre of the box is close, but misses to the right.

89:09

Attempt missed. Niall McGinn (Aberdeen) left footed shot from outside the box misses to the right.

86:58 Goal scored

Goal! Goal! Hearts 1, Aberdeen 1. Jamie Hamill (Hearts) converts the penalty with a right footed shot to the bottom left corner.

86:29 Booking

Booking Shaleum Logan (Aberdeen) is shown the yellow card.

86:13

Penalty conceded by Shaleum Logan (Aberdeen) after a foul in the penalty area.

86:13

Penalty Hearts. Callum Paterson draws a foul in the penalty area.

85:55

Foul by Scott Vernon (Aberdeen).

85:55

Jamie Hamill (Hearts) wins a free kick on the left wing.

83:18

Attempt missed. Ryan Stevenson (Hearts) right footed shot from the centre of the box misses to the left.

81:49

Attempt missed. Adam Rooney (Aberdeen) header from the right side of the six yard box is high and wide to the right following a set piece situation.

81:20

Cameron Smith (Aberdeen) wins a free kick on the right wing.

81:20

Foul by Kevin McHattie (Hearts).

77:54 Substitution

Substitution Substitution, Aberdeen. Scott Vernon replaces Peter Pawlett.

77:09

Foul by Niall McGinn (Aberdeen).

77:09

Kevin McHattie (Hearts) wins a free kick in the attacking half.

75:37

Corner, Hearts. Conceded by Shaleum Logan.

75:26

Attempt blocked. Billy King (Hearts) left footed shot from the centre of the box is blocked.

74:43 Booking

Booking Peter Pawlett (Aberdeen) is shown the yellow card.

74:27

Foul by Mark Reynolds (Aberdeen).

74:27

Ryan Stevenson (Hearts) wins a free kick in the defensive half.

73:17 Goal scored

Goal! Goal! Hearts 0, Aberdeen 1. Willo Flood (Aberdeen) from a free kick with a right footed shot to the bottom left corner.

73:00 Substitution

Substitution Substitution, Hearts. Brad McKay replaces Sam Nicholson.

72:16 Dismissal

Dismissal Second yellow card to Danny Wilson (Hearts).

72:03

Adam Rooney (Aberdeen) wins a free kick in the attacking half.

72:03

Foul by Danny Wilson (Hearts).

71:31

Shaleum Logan (Aberdeen) wins a free kick on the left wing.

71:31

Foul by Sam Nicholson (Hearts).

69:48 Substitution

Substitution Substitution, Aberdeen. Cameron Smith replaces Barry Robson.

69:22

Attempt missed. Adam Rooney (Aberdeen) right footed shot from the centre of the box is close, but misses to the left.

68:44 Substitution

Substitution Substitution, Hearts. Billy King replaces David Smith.

68:22

Niall McGinn (Aberdeen) wins a free kick in the defensive half.

68:22

Foul by Scott Robinson (Hearts).

68:06

Attempt saved. Callum Paterson (Hearts) header from the centre of the box is saved in the centre of the goal.

67:59

Corner, Hearts. Conceded by Jamie Langfield.

67:50

Attempt saved. Callum Paterson (Hearts) right footed shot from outside the box is saved in the top right corner.

65:31

Corner, Hearts. Conceded by Russell Anderson.

64:38

Attempt blocked. Barry Robson (Aberdeen) right footed shot from the left side of the box is blocked.

60:22

Foul by Ryan Stevenson (Hearts).

60:22

Russell Anderson (Aberdeen) wins a free kick in the defensive half.

58:10

Scott Robinson (Hearts) wins a free kick in the attacking half.

58:10

Foul by Adam Rooney (Aberdeen).

56:27 Booking

Booking David Smith (Hearts) is shown the yellow card.

56:18

Andrew Considine (Aberdeen) wins a free kick in the defensive half.

56:18

Foul by David Smith (Hearts).

54:24

Corner, Hearts. Conceded by Jamie Langfield.

52:40

Attempt missed. David Smith (Hearts) left footed shot from outside the box is high and wide to the left.

52:21

Foul by Barry Robson (Aberdeen).

52:21

Jamie Hamill (Hearts) wins a free kick in the attacking half.

51:12

Corner, Aberdeen. Conceded by Callum Paterson.

50:24

(Aberdeen) wins a free kick in the attacking half.

50:24

Foul by Scott Robinson (Hearts).

49:56

Corner, Hearts. Conceded by Russell Anderson.

49:46

Attempt blocked. Ryan Stevenson (Hearts) right footed shot from outside the box is blocked.

45:00

Second Half begins Hearts 0, Aberdeen 0.

45:00 Substitution

Substitution Substitution, Hearts. Scott Robinson replaces Paul McCallum.

45:00 +0:46 Half time

Half Time First Half ends, Hearts 0, Aberdeen 0.

45:00 +0:19 Booking

Booking Paul McCallum (Hearts) is shown the yellow card.

45:00

(Aberdeen) wins a free kick in the attacking half.

44:45

Foul by Paul McCallum (Hearts).

41:15

Russell Anderson (Aberdeen) wins a free kick in the defensive half.

41:15

Foul by Paul McCallum (Hearts).

40:40

Attempt missed. Ryan Stevenson (Hearts) header from the centre of the box is close, but misses to the right following a set piece situation.

40:00

Foul by Willo Flood (Aberdeen).

40:00

Sam Nicholson (Hearts) wins a free kick in the defensive half.

39:18

Foul by Peter Pawlett (Aberdeen).

39:18

Callum Paterson (Hearts) wins a free kick on the left wing.

37:39

Attempt missed. Niall McGinn (Aberdeen) right footed shot from outside the box is close, but misses to the right.

37:28

Attempt blocked. Niall McGinn (Aberdeen) right footed shot from outside the box is blocked.

36:43 Booking

Booking Danny Wilson (Hearts) is shown the yellow card.

36:36

Adam Rooney (Aberdeen) wins a free kick in the attacking half.

36:36

Foul by Danny Wilson (Hearts).

34:30

Corner, Aberdeen. Conceded by Danny Wilson.

34:10

Attempt blocked. Peter Pawlett (Aberdeen) right footed shot from the centre of the box is blocked.

33:06

Shaleum Logan (Aberdeen) wins a free kick on the left wing.

33:06

Foul by Sam Nicholson (Hearts).

31:50

Attempt missed. Ryan Jack (Aberdeen) right footed shot from outside the box is close, but misses to the right.

30:17

Hand ball by Barry Robson (Aberdeen).

28:01

Foul by Adam Rooney (Aberdeen).

28:01

Sam Nicholson (Hearts) wins a free kick in the defensive half.

25:48 Booking

Booking Ryan Jack (Aberdeen) is shown the yellow card.

25:41

Foul by Ryan Jack (Aberdeen).

25:41

David Smith (Hearts) wins a free kick in the defensive half.

23:40

Willo Flood (Aberdeen) wins a free kick on the right wing.

23:40

Foul by Callum Paterson (Hearts).

22:16

Corner, Aberdeen. Conceded by Dylan McGowan.

21:26

Peter Pawlett (Aberdeen) wins a free kick on the left wing.

21:26

Foul by Callum Paterson (Hearts).

20:48

Peter Pawlett (Aberdeen) wins a free kick in the attacking half.

20:48

Foul by Jamie Hamill (Hearts).

19:47

Foul by Peter Pawlett (Aberdeen).

19:47

Jamie Hamill (Hearts) wins a free kick in the defensive half.

17:20

Mark Reynolds (Aberdeen) wins a free kick on the right wing.

17:20

Foul by Paul McCallum (Hearts).

16:25

Foul by Shaleum Logan (Aberdeen).

16:25

Sam Nicholson (Hearts) wins a free kick on the left wing.

13:13

Andrew Considine (Aberdeen) wins a free kick on the right wing.

13:13

Foul by Paul McCallum (Hearts).

10:16

Peter Pawlett (Aberdeen) wins a free kick in the defensive half.

10:16

Foul by Jamie Hamill (Hearts).

9:46

Foul by Adam Rooney (Aberdeen).

9:46

Dylan McGowan (Hearts) wins a free kick in the attacking half.

5:53

Kevin McHattie (Hearts) wins a free kick in the attacking half.

5:53

Foul by Barry Robson (Aberdeen).

4:41

Attempt saved. Niall McGinn (Aberdeen) right footed shot from outside the box is saved in the bottom right corner.

1:07

Attempt blocked. Sam Nicholson (Hearts) left footed shot from outside the box is blocked.

0:24

Corner, Hearts. Conceded by Ryan Jack.

0:00

First Half begins.

0:00

Lineups are announced and players are warming up.

Live data and text provided by our data suppliers