Minecraft Color Codes
All 16 colour codes (§0–§f), the formatting codes (§k–§r) and Bedrock's extra material colours, with hex values. Type text with & codes in the editor to see a live preview and copy it for signs, books, a server MOTD or a /tellraw command. Quick reference: §6 is gold, §c red, §a green, §b aqua, §e yellow, §l bold and §r resets everything.
§6§lMC Seed Maps §r§7- §aFind every village\u00A76\u00A7lMC Seed Maps \u00A7r\u00A77- \u00A7aFind every village/tellraw @a ["",{"text":"MC Seed Maps ","color":"gold","bold":true},{"text":"- ","color":"gray"},{"text":"Find every village","color":"green"}]["",{"text":"MC Seed Maps ","color":"gold","bold":true},{"text":"- ","color":"gray"},{"text":"Find every village","color":"green"}]| Code | Name | ID | Hex |
|---|---|---|---|
| §0 · &0 | Black | black | #000000 |
| §1 · &1 | Dark Blue | dark_blue | #0000AA |
| §2 · &2 | Dark Green | dark_green | #00AA00 |
| §3 · &3 | Dark Aqua | dark_aqua | #00AAAA |
| §4 · &4 | Dark Red | dark_red | #AA0000 |
| §5 · &5 | Dark Purple | dark_purple | #AA00AA |
| §6 · &6 | Gold | gold | #FFAA00 |
| §7 · &7 | Gray | gray | #AAAAAA |
| §8 · &8 | Dark Gray | dark_gray | #555555 |
| §9 · &9 | Blue | blue | #5555FF |
| §a · &a | Green | green | #55FF55 |
| §b · &b | Aqua | aqua | #55FFFF |
| §c · &c | Red | red | #FF5555 |
| §d · &d | Light Purple | light_purple | #FF55FF |
| §e · &e | Yellow | yellow | #FFFF55 |
| §f · &f | White | white | #FFFFFF |
| Code | Effect |
|---|---|
| §k · &k | Obfuscated |
| §l · &l | Bold |
| §m · &m | Strikethrough |
| §n · &n | Underline |
| §o · &o | Italic |
| §r · &r | Reset |
| Code | ID | Hex |
|---|---|---|
| §g | minecoin_gold | #DDD605 |
| §h | material_quartz | #E3D4D1 |
| §i | material_iron | #CECACA |
| §j | material_netherite | #443A3B |
| §m | material_redstone | #971607 |
| §n | material_copper | #B4684D |
| §p | material_gold | #DEB12D |
| §q | material_emerald | #47A036 |
| §s | material_diamond | #2CBAA8 |
| §t | material_lapis | #21497B |
| §u | material_amethyst | #9A5CC6 |
| §v | material_resin | #EB7114 |
How to use the colour code editor
Type your text
Write your message and put an & code in front of each part, for example &6Gold &lBold. The preview updates as you type.
Pick the output
Copy it as § text (for Bedrock chat, signs and books), as a server.properties MOTD line, or as a ready /tellraw command for Java.
Paste it in the game
Paste the result where you need it. Commands go in chat or a command block; MOTD text goes in server.properties.
How to use colour codes
| Where | What to type |
|---|---|
| Books, signs (Java, with plugins) and many server plugins | § or & + code, e.g. &6Gold |
server.properties motd |
\u00A7 + code, e.g. \u00A76Welcome |
| Commands (/tellraw, /title) | A text component, e.g. {"text":"Hi","color":"gold"} |
| Bedrock chat, signs and books | § + code (hold Alt and type 0167 for § on Windows) |
A colour code resets bold, italic and the other formats in Java, so put formatting codes after the colour.
Formatting codes
| Code | Effect | Editions |
|---|---|---|
| §k | Obfuscated (random scrambling characters) | Java and Bedrock |
| §l | Bold | Java and Bedrock |
| §m | Strikethrough | Java only (a colour on Bedrock) |
| §n | Underlined | Java only (a colour on Bedrock) |
| §o | Italic | Java and Bedrock |
| §r | Reset to default | Java and Bedrock |
The scrambled characters from §k always keep the width of the original letters. §r is handy for removing the default italics when you rename an item in an anvil on Bedrock.
Where colour codes work
Bedrock Edition accepts § codes in almost any text box: book and quill text, chat (including /msg), signs and hanging signs (no dye needed), item names in anvils and cartography tables, resource pack text, and commands such as /title and /scoreboard.
Java Edition only accepts § codes outside normal gameplay: server.properties (the MOTD), pack.mcmeta, language files and splashes in resource packs, world titles, server names and commands such as /tellraw and /title in data packs. Since Java 1.21.6 you can no longer type or paste § into books. For in-game text in Java, use a text component with a color instead.
Hex colours in Java text components
Java text components are not limited to the 16 named colours: the color field also accepts a hex value such as "#FF8800". For example:
/tellraw @a {"text":"Sunset","color":"#FF8800","bold":true}
Named colours (gold, aqua, dark_purple…) match the § codes in the table above, so "color":"gold" looks exactly like §6. § codes themselves cannot show custom hex colours.
How to type the § symbol
| Device | How |
|---|---|
| Windows | Hold Alt and type 21 on the number pad (or Alt + 0167) |
| Mac (US keyboard) | Option + 6 |
| Linux | Compose, s, o — or Ctrl + Shift + U, a7, Enter |
| Android (Gboard) | Symbols page, then the extra symbols page |
| Samsung keyboard | Hold the s key and slide to § |
On many servers you can type & instead and a plugin converts it — but that is a plugin feature, not part of the game.
Java vs Bedrock
The 16 colours work in both editions. Bedrock adds material colours (§g, §h … §v), and on Bedrock §m and §n are colours, not strikethrough and underline. Underline and strikethrough only work in Java.
Troubleshooting
- Bold or underline disappears after a colour: in Java a colour code turns off earlier formatting. Put the colour first, then the format (
§6§l, not§l§6). In Bedrock, formatting stays on after a colour. - The MOTD shows strange characters: write
\u00A7instead of § in server.properties, so the file encoding cannot break it. - Underline shows as a colour on Bedrock: §m and §n are material colours on Bedrock, not formats.
- Codes do nothing in Java chat: normal chat does not accept §. Use
/tellrawwith a text component.
Frequently asked questions
What is the § symbol?
The section sign. Minecraft uses it to start a colour or format code. Many plugins let you type & instead.
Are the /tellraw commands tested?
Yes. We checked the text components this tool writes on the official Java 26.3 server.
How do I make obfuscated (scrambling) text?
Use §k (or &k). The text shows as random changing characters.
What is the colour code for gold?
§6 (or &6 on servers with a colour plugin). Its hex value is #FFAA00, and in Java text components it is called gold.
Can I use colour codes on signs?
On Bedrock, yes — type § codes straight onto a sign, no dye needed. In Java, use dyes on the sign, or place a sign with coloured text through a command.
How do I colour my server MOTD?
Put the codes in the motd= line of server.properties, written as \u00A7 plus the code, for example motd=\u00A76Welcome \u00A7bto my server. Our editor writes this line for you.
Why does §m make my text red on Bedrock?
On Bedrock §m is the material colour "redstone", not strikethrough. Strikethrough and underline only exist in Java.