Minecraft Color Codes
Every Minecraft color and formatting code with its hex value, the § and & versions and the MOTD escape. Type below to preview colored text and copy it in the format you need.
Minecraft color codes
| Color | § code | & code | MOTD | Hex |
|---|---|---|---|---|
| Black | §0 | &0 | \u00A70 | #000000 |
| Dark Blue | §1 | &1 | \u00A71 | #0000AA |
| Dark Green | §2 | &2 | \u00A72 | #00AA00 |
| Dark Aqua | §3 | &3 | \u00A73 | #00AAAA |
| Dark Red | §4 | &4 | \u00A74 | #AA0000 |
| Dark Purple | §5 | &5 | \u00A75 | #AA00AA |
| Gold | §6 | &6 | \u00A76 | #FFAA00 |
| Gray | §7 | &7 | \u00A77 | #AAAAAA |
| Dark Gray | §8 | &8 | \u00A78 | #555555 |
| Blue | §9 | &9 | \u00A79 | #5555FF |
| Green | §a | &a | \u00A7a | #55FF55 |
| Aqua | §b | &b | \u00A7b | #55FFFF |
| Red | §c | &c | \u00A7c | #FF5555 |
| Light Purple | §d | &d | \u00A7d | #FF55FF |
| Yellow | §e | &e | \u00A7e | #FFFF55 |
| White | §f | &f | \u00A7f | #FFFFFF |
Formatting codes
| Effect | § code | & code | MOTD |
|---|---|---|---|
| Obfuscated (Random changing characters) | §k | &k | \u00A7k |
| Bold | §l | &l | \u00A7l |
| Strikethrough | §m | &m | \u00A7m |
| Underline | §n | &n | \u00A7n |
| Italic | §o | &o | \u00A7o |
| Reset (Clears color and formatting) | §r | &r | \u00A7r |
Put the color first and the formatting after it: a color code resets bold, italic and the other effects on Java Edition, so &l&6 is not bold but &6&l is.
Where each format works
- Server MOTD: in
server.propertieswrite the section sign as\u00A7. Use the MOTD generator or read how to change your server MOTD. - Chat, nicknames and signs: plugins such as EssentialsX convert
&codes for players with permission. Vanilla chat doesn't. - Commands and data:
/tellraw,/titleand books use JSON text with color names or hex (1.16+) instead of codes. - Bedrock: the same
§codes, plus extra colors such as§g(Minecoin Gold).
Frequently asked questions
What is the § symbol in Minecraft?
The section sign (§) starts a formatting code in Minecraft text, for example §c for red. You can't type it in chat, so servers and plugins usually accept & instead and convert it.
How do I use colors in a server MOTD?
In server.properties write the section sign as \u00A7, for example motd=\u00A7aWelcome \u00A7eto my server. Our MOTD generator builds this for you.
Do color codes work in chat?
Not in vanilla chat. Plugins such as EssentialsX let players or staff use & codes in chat, nicknames and signs, depending on their permissions.
Can I use hex colors?
Minecraft Java 1.16 and newer supports any hex color in JSON text. Many plugins accept a format such as FF8800 or MiniMessage tags like <#FF8800>; check your plugin's documentation.
Do the codes work on Bedrock?
Yes, Bedrock uses the same § codes for colors and formatting, and adds a few extra colors such as §g (Minecoin Gold).