I am make a Skript that pulls the color of a leather piece of armor and then colors the item name to be the same. Only issue is that the color code for armor is a decimal number (base10) and the only way to color text is using the default Minecraft coloring or hexadecimal (base16).
This is how I am getting the item color:
set {_nbt} to nbt compound of player's held item
set {_color} to tag "display;color" of {_nbt}
The above snippet of code uses SkBee.