Yourhashtagname – hashtag name to click

#menu-item-1 { } menu item CSS class

.colorit {} new CSS class to apply on click

jQuery(window).on('hashchange', function(e){
if (location.hash =='yourhashtagname')
  {
    jQuery( "#menu-item-1" ).addClass('colorit');
  };
});