A chef's hat is a white hat that allows players to enter the Cooks' Guild if they have the required Cooking level of 32. Other than this they serve no purpose, except for the aesthetics.
If players have completed all of the Hard Varrock Tasks, wearing a chef's hat is not needed to enter the Cooking Guild. Completing these tasks also allows access to the bank and range inside the guild.