minecraft:rarity

The minecraft:rarity item component determines the default color for the item name. Its value, a string, may be one of the following:

Its value may be overridden for a specific item stack by using the minecraft:rarity data component.