The minecraft:rarity
item component determines the default color for the item name.
Its value, a string, may be one of the following:
common
uncommon
rare
epic
Its value may be overridden for a specific item stack by using the minecraft:rarity data component.