Renaming th layers based on color palette name?

Hi Guys, is there any plugin to rename the layers automatically based on Color palette name ?

if there is a plugin available that can automatically rename layers based on their corresponding color palette names?’