Minecraft color codes and formatting codes
Updated 2026-11-26
Color codes change how text looks in server MOTDs, chat and signs. Each code is the section sign § followed by a number or letter: §aWelcome shows green text.
Color codes
| Code | Color | Hex |
|---|---|---|
| §0 | Black | #000000 |
| §1 | Dark blue | #0000AA |
| §2 | Dark green | #00AA00 |
| §3 | Dark aqua | #00AAAA |
| §4 | Dark red | #AA0000 |
| §5 | Dark purple | #AA00AA |
| §6 | Gold | #FFAA00 |
| §7 | Gray | #AAAAAA |
| §8 | Dark gray | #555555 |
| §9 | Blue | #5555FF |
| §a | Green | #55FF55 |
| §b | Aqua | #55FFFF |
| §c | Red | #FF5555 |
| §d | Light purple | #FF55FF |
| §e | Yellow | #FFFF55 |
| §f | White | #FFFFFF |
Formatting codes
| Code | Effect |
|---|---|
| §k | Obfuscated (scrambling characters) |
| §l | Bold |
| §m | Strikethrough (Java only) |
| §n | Underline (Java only) |
| §o | Italic |
| §r | Reset to normal text |
On Java, a color code resets any formatting before it, so put the color first and then bold or italic: §a§lHello, not §l§aHello. Bedrock keeps formatting when the color changes, so use §r to go back to plain text.
Bedrock has extra "material" colors on letters such as §g (Minecoin gold) and uses §m and §n for colors instead of strikethrough and underline.
Your server MOTD
- Build it in our MOTD generator with a live preview.
- Copy the
motd=line it gives you. - Stop the Java server and replace the
motd=line inserver.properties. - Start the server and refresh your multiplayer list.
The line uses \u00A7 instead of the § character and \n for the second line, because server.properties is plain text: motd=\u00A7a\u00A7lMy Server\u00A7r\n\u00A7eSurvival and events.
Bedrock Dedicated Server has no MOTD setting; it shows server-name instead.
Colors in chat
Players can't type § in vanilla Java chat. Chat plugins usually translate & codes such as &a, depending on permissions. Modern Java also supports any RGB color through JSON text components; plugin hex formats differ, so check your plugin's documentation.
After changing your MOTD, check it with the server status checker.