Formatting codes (also known as color codes) add color and modifications to text in-game. Text in Minecraft can be formatted with the section sign (§). In Bedrock Edition, the section sign can be entered into signs, world names, books, renaming items and in the chat. In Java Edition, section...
minecraft.gamepedia.com