How to combine codes
Codes apply to everything after them. Always put the color first and the formatting second: &c&l gives bold red text. If you write the formatting first (&l&c), the color code resets it and the text will not be bold. Use &r to go back to plain white text.
Where you can use color codes
Java Edition
- Server list message (MOTD): in
server.properties, using § codes or the\u00A7escape. - Resource packs: in the
pack.mcmetadescription and in language files. - Commands and data packs: use JSON text in
/tellrawand/title. The JSON"color"field also accepts hex values like"#FF5555", which the gradient text generator uses. - Chat on servers: only through plugins that accept & codes. Typing § in Java chat disconnects you.
Bedrock Edition
Bedrock is much more relaxed. § codes work in chat, signs and hanging signs, books, anvils, name tags and commands such as /title. Realm names and player names do not allow them.
Bedrock-only colors
Bedrock Edition has extra material colors. Note that §m and §n are colors in Bedrock, not strikethrough and underline.
| Color | Code | Hex |
|---|---|---|
| Minecoin Gold | §g | #EFCE16 |
| Material Quartz | §h | #D9CCB8 |
| Material Iron | §i | #A9B4B7 |
| Material Netherite | §j | #8F727D |
| Material Redstone | §m | #EE222C |
| Material Copper | §n | #C87363 |
| Material Gold | §p | #FFBF1E |
| Material Emerald | §q | #13A045 |
| Material Diamond | §s | #5FECFF |
| Material Lapis | §t | #577BFF |
| Material Amethyst | §u | #B66CDD |
| Material Resin | §v | #FF6A00 |
| Party Blue | §w | #8BB3FF |
Minecoin gold (§g) is not available on PlayStation. Several standard colors also use slightly different hex values in Bedrock, for example gray is #C5C5C5 instead of #AAAAAA.
How to type the § symbol
| Device | How |
|---|---|
| Windows | Hold Alt and type 0167 on the number pad |
| Mac (US keyboard) | Option + 6 |
| Linux | Ctrl + Shift + U, then a7 and Enter |
| JSON / config files | Write \u00A7 |
| Anywhere | Copy it here: § |