Hamilton were forced to settle for a point as St Johnstone fought back late on at New Douglas Park.
Accies led through Ross Callachan's wonder-strke, but Guy Melamed struck late on to take a point back to Perth.
The first half was pretty even and Saints were edging it on chances created, but Accies took the lead in spectacular style when Ross Callachan curled a super shot into the top corner.
Craig Bryson nearly levelled shortly afterwards, with Guy Melamed and Scott Tanser also having gone close.
The second half was pretty even again, though David Moyo did hit the post for Accies.
But Melamed slammed the ball into the bottom right corner with just minutes remaining.
Accies head coach Brian Rice made two changes from the line-up that lost at Hibs, with Aaron Martin and David Moyo in for Jamie Hamilton and injured Marios Ogkmpoe.
Saints boss Callum Davidson made four changes to the side that beat Livingston in the Betfred Cup final. Tanser, Bryson, Stevie May and Melamed came in for Callum Booth, Ali McCann, Craig Conway and Chris Kane.
Callachan tested Saints keeper Zander Clark with a free kick inside a minute and a half, but it was punched clear.
Saints came into it and in 12 minutes Shaun Rooney linked up well with Stevie May to send Bryson on his way in the box, but the ball was cleared from his toes.
Tanser volleyed Liam Craig's corner past the right post from just outside the box.
St Johnstone created the best chance of the game so far in 18 minutes when a neat move saw Melamed's fiercely-struck angled shot well saved by Ryan Fulton at the bottom left corner.
Craig's cross was then headed over by Jason Kerr as the visitors threatened again.
Hamilton forced three corner in 27 minutes, and from the second, Callachan picked out Bruce Anderson, whose cross was headed towards the bottom right corner by Brian Easton, but it was well blocked.
When the ball came back in after the third one, Hakeem Odoffin headed narrowly past the right post.
Saints created another good move in 34 minutes, with Fulton needing a strong hand to stop Melamed's shot on the turn from flying in at the bottom left corner.
Accies them took the lead in 36 minutes and it was a thing of beauty, as Anderson played a pass to Callachan, who looked up before curling an unstoppable shot into the top right corner.
Saints nearly levelled in 43 minutes, but Bryson sent his low shot just wide of the right post, with Fulton at full stretch.
Craig let fly with a long-range effort three minutes into the second half, but it was well over.
Saints keeper Clark then looked to have carried a Charlie Trafford header over his own line in 53 minutes, but nothing was given.
A Saints mistake then gave Callachan another opportunity to let fly in 55 minutes, but this time the shot was high and wide.
Accies then hit woodwork inn 60 minutes when Callachan found Moyo, but his fierce shot cannoned off the right post.
But Saints took a point when Melamed fired low into the corner from Gordon's pass.
HAMILTON: Fulton, A. Martin, Odoffin, Easton, Hodson, Trafford (Stirling, 85), S. Martin (Hughes, 82), McMann, Anderson, Callachan, Moyo.
Subs (not used): Gourlay (GK), Stanger, Mimnaugh, Winter, Munro, Thomas, C. Smith.
Booked: Anderson (69)
ST Johnstone: Clark, Gordon, McCart, Kerr, Rooney (Brown, 50), Craig, Tanser, Bryson (O'Halloran, 65), Wotherspoon, May (Middleton, 65), Melamed.
Subs (not used): Parish (GK), Conway, Gilmour, McCann, Booth, Ferguson.
Booked: McCart (69), Wotherspoon (75), Craig (76)
Referee: Grant Irvine.
Follow Lanarkshire Live Sport onTwitter via@LanLiveSport, like us onFacebookor find us onInstagramfor the latest sports news, pictures and video