Hernandez rung up Sean Rodriguez for the game's final out in the 1-0 victory at Safeco Field in Seattle.
Jesus Montero knocked in the game's only run in the fifth inning, making Jeremy Hellickson a hard-luck loser. The Rays starter gave up five hits in seven innings,
Hernandez's effort is a record third perfect game in a major league season, following Phillip Humber of the Chicago White Sox and Matt Cain of the San Francisco Giants.
It is the 23rd perfect outing in major league history.
It is Seattle's fourth no-hitter ever and their second this season. Kevin Millwood led a group of six pitchers in a no-hit effort over the Los Angeles Dodgers on June 8.
There have been six no-hitters overall, matching the major league total from 2010.
It was the fifth time the Rays have been no-hit in franchise history.
Hernandez, the Cy Young winner in 2010, took a no-hitter into the eighth inning that season.