Minecraft colour and formatting codes are commonly used in server names, MOTDs, plugin messages, scoreboards, and signs. Many Bukkit, Spigot, Paper, and plugin configuration files use & as the alternate colour-code character, which is converted to the Minecraft section-sign format in-game.
Colour codes
| Code | Colour |
|---|---|
&0 | Black |
&1 | Dark blue |
&2 | Dark green |
&3 | Dark aqua |
&4 | Dark red |
&5 | Dark purple |
&6 | Gold |
&7 | Gray |
&8 | Dark gray |
&9 | Blue |
&a | Green |
&b | Aqua |
&c | Red |
&d | Light purple |
&e | Yellow |
&f | White |
Formatting codes
| Code | Format |
|---|---|
&k | Obfuscated |
&l | Bold |
&m | Strikethrough |
&n | Underline |
&o | Italic |
&r | Reset colour and formatting |
Examples
&6Gold &lBold &r&fNormal white
Use &r before returning to normal text. Without a reset code, formatting can continue into the rest of the message depending on where the text is used.
Some modern servers and plugins also support hex colours, usually with a format such as #ff9900 or Minecraft's long section-sign format. Hex support is plugin-dependent, so check the plugin documentation before using it in production.