This is a New Era 9FORTY M-Crown A-Frame Snapback hat, a collaboration between Alpha Industries and the San Francisco Giants.
New Era