Minecraft Color Codes: The Complete List & How to Use

Written On: August 18, 2026 Last Updated: December 2, 2026

Minecraft oak sign and chat window with text in gold, aqua and green from color codes

Table of Contents

Minecraft color codes are the § symbol followed by 0–9 or a–f, and each one sets the color of the text after it. Six more codes add bold, italic, underline, strikethrough, obfuscated text, or a reset, and all of them are built into the game with no mods needed. I didn’t know that until I’d spent an embarrassing amount of time looking for one.

Need just the symbol? Copy it from here.

§

The Complete Minecraft Color Code List (All 16 Colors)

Chart of the 16 Minecraft color codes in § and & form with swatches, and the six formatting codes

Each color has a § code for the game, an & code for plugins, a name for commands and JSON, a hex value, and an escaped code for the server MOTD.

§ Code& CodeNameHex (Java)MOTD Code
§0&0black#000000\u00A70
§1&1dark_blue#0000AA\u00A71
§2&2dark_green#00AA00\u00A72
§3&3dark_aqua#00AAAA\u00A73
§4&4dark_red#AA0000\u00A74
§5&5dark_purple#AA00AA\u00A75
§6&6gold#FFAA00\u00A76
§7&7gray#AAAAAA\u00A77
§8&8dark_gray#555555\u00A78
§9&9blue#5555FF\u00A79
§a&agreen#55FF55\u00A7a
§b&baqua#55FFFF\u00A7b
§c&cred#FF5555\u00A7c
§d&dlight_purple#FF55FF\u00A7d
§e&eyellow#FFFF55\u00A7e
§f&fwhite#FFFFFF\u00A7f

The § character tells the renderer to read the next character and switch to that color. The color doesn’t stop at one word. It sticks to every character after it until you reset it with §r or drop in a new code.

One thing I got wrong early on: the & shorthand is not a vanilla Minecraft character. It only works because plugins like EssentialsX intercept it and translate it to §. Type & in a vanilla config and nothing happens.

A couple of things worth flagging from personal experience:

  • §0 (black) disappears on dark backgrounds: It’s very hard to read on the dark chat background. The code works fine; it just blends in. Use it only on signs or light backgrounds.
  • §7 and §8 are easy to swap by mistake: §7 is the light gray of most server chat, and §8 is the dark one that fades on dark backgrounds.

Color Code Quick Reference by Use Case

Use CaseRecommended CodesWhy
Light wood signs§1, §2, §4, §5Dark text stands out on pale planks
Dark wood signs§a, §b, §e, §fBright text stands out on dark planks
Server MOTD§6, §9, §dDistinctive and readable in the server list
Subtle or secondary text§7, §8Low-key, good for less important info
Warnings or alerts§c, §4Red tones read as urgent immediately
Ranks and prefixes§6, §b, §5Gold, aqua, purple feel premium

The names like dark_red or gold matter beyond the table. You’ll need them when writing /tellraw commands or data pack JSON, and they need the underscore, as in dark_red.

Bright codes like §e and §f work best on dark backgrounds. On a light sign background, §f (white) disappears entirely, same problem as §0 on dark chat.

Minecraft Formatting Codes: Bold, Italic, Obfuscated, and Reset

Steph Corbin Minecraft color codes guide graphic with pixel hearts, brick background, and creeper face

Minecraft formatting codes are six § codes that modify text attributes like weight, style, and visibility. They use the same escape mechanism as color codes, but target appearance instead of hue.

The Six Formatting Codes

§ Code& ShorthandEffectBehavior Notes
§l&lBoldThickens text weight
§o&oItalicSlants text right
§n&nUnderlineAdds an underline beneath text (Java only)
§m&mStrikethroughDraws a line through text (Java only)
§k&kObfuscatedRapidly flickering random glyphs
§r&rResetClears all active color and format attributes

§k does not encrypt or hide text. It just swaps characters for flickering random glyphs on screen. The underlying string stays fully readable in the source.

§r is the most underused code on this list. Skipping it is the single most common cause of unrelated text quietly inheriting colors nobody meant to apply to it.

Stacking Formatting Codes

Each formatting code adds an attribute layer without canceling anything that came before it, and that piles up fast.

ScenarioWhat Happens
§l then §oBold and italic both active simultaneously
§6 then §lGold color with bold applied on top
No §r at endAll active attributes bleed into following text
§r mid-stringWipes every active color and format at that point

Without §r, every active attribute bleeds into all text that follows, including lines that were never meant to be formatted. Ending every formatted string with §r without exception avoids this entirely.

Combining Color and Formatting

Order matters more than most guides admit. Color code always goes first, formatting second, then your text, then §r to close.

OrderExampleResult
Correct§6§lThis is bold gold text§rBold gold text
Incorrect§l§6This is bold gold text§rPlain gold text in Java, because the color code cancels the bold

In Java Edition a color code switches off any formatting that came before it, every time. Put the color first and repeat the formatting code after every color change. Bedrock works the other way and keeps the formatting after a color code, so there you end it with §r instead.

Stacking multiple formatting codes after the color works fine, and the §r at the end wipes them all at once.

§6§l§oThis is bold italic gold§r

Where Minecraft Color Codes Work: Chat, Signs, MOTD, and Commands

Where you apply a color code matters more than the code itself, because the same § character gets treated completely differently depending on the surface. The failure is almost always about placement, not a wrong code. Everything below I tested myself on Java 26.3, Bedrock 26.66, and a Paper 26.3 test server running EssentialsX 2.22.1. The 2.22.0 stable release from May still calls 26.3 unsupported, so I’m on the dev build. Where I say a code doesn’t work somewhere, that’s me typing it in and watching nothing happen, not a wiki quote.

Mojang treats § typed inside the game as a bug to fix, and in Java the only text boxes it ever slipped into were signs and books. Config files, plugins, and commands still pass § to the renderer, which is why the input surface decides whether a code shows up.

WhereWhat to use
Chat in vanilla JavaNothing typed. Use /tellraw with JSON
Plugin config files& codes
server.properties\u00A7 codes
JSON text (/tellraw, data packs)"color":"gold" or "color":"#FF5500"
Paper with MiniMessage<gold> or <#FF5500>

In Chat (Java Edition)

You can’t type § into Java Edition chat, and a message that carries one gets you kicked. This is intentional behavior, not a bug with your code.

For vanilla chat colors, /tellraw is your cleanest option since it bypasses the chat field entirely. For persistent colored prefixes across your server, EssentialsX with & shorthand is what I use.

Prefixes come from LuckPerms, so mine is one command per rank:

/lp group vip meta setprefix 10 "&6[VIP]&r"

And the chat line that picks it up, in plugins/Essentials/config.yml:

format: '{DISPLAYNAME}&r&7: &f{MESSAGE}'

Two things caught me out there. The 10 is the prefix priority, and the highest number wins. If two ranks share the same number, LuckPerms uses the one closest to the player in the group inheritance, and you only see both prefixes side by side when meta stacking is switched on in its config. The &r on the end of the prefix matters too. Without it your gold VIP tag keeps coloring the player name and the message after it, which is the §r problem from earlier wearing a plugin’s clothes.

Minecraft chat line with a gold VIP rank prefix before a white player name

On Signs and Books

Vanilla Java isn’t meant to accept § on signs, so don’t rely on typing or pasting it. Dye the sign to color all of its text, or place a sign with JSON text by command for several colors on one sign. This command places an oak sign next to you with a gold first line and an aqua second line.

/setblock ~ ~ ~1 oak_sign{front_text:{messages:[{text:"Gold line",color:"gold"},{text:"Aqua line",color:"aqua"},"",""]}}

On servers with EssentialsX color signs enabled, & codes work on signs for players with permission.

Minecraft oak sign with a gold first line and an aqua second line

If § does appear on a Java sign for you, that’s the long-standing keyboard bug Mojang lists as unintended, so don’t build a server around it.

Books are stricter. Since the book and quill was reworked in Java 1.21.6, you can’t add § formatting to one at all, and books formatted with § in older versions can show the wrong colors after the upgrade. For a colored book in Java, give it with a command instead.

/give @p written_book[written_book_content={title:"Server Rules",author:"Admin",pages:[{text:"Rule 1: be kind",color:"gold"}]}]

On Bedrock, § works on signs and books without any workaround.

In the Server MOTD (server.properties)

The server.properties file is one of the cleanest places to use color codes, but it reads escapes, so write each § as \u00A7.

motd=\u00A76Welcome to My Server\u00A7r

That gives gold text, reset at the end, with no plugin needed. A raw § often gets saved as §, which is why some MOTDs show a stray  or a question mark in the server list. Delete the Â, or swap each § for the escape.

Minecraft multiplayer server list entry with a gold Welcome to My Server MOTD

The server list shows two MOTD lines. Put \n where the second line starts.

motd=\u00A76Welcome to My Server\n\u00A77Survival \u00A78| \u00A7aNew map this week

If you rent your server from a host like GTXGaming, the same file usually sits in its control panel.

In Command Blocks and /tellraw

Command blocks don’t accept a typed §. Write the color into the command’s JSON instead, by name or as a hex value.

/tellraw @a {"text":"Hello","color":"gold"}
/tellraw @a {"text":"Hello","color":"#FF5500"}

In a data pack function file, /tellraw and /title also read § directly.

Minecraft chat with a gold Hello from a color name and an orange Hello from a hex value

In Item Names and Lore

Typing § into the anvil rename field does not work in vanilla Java. Skip the anvil and set the name and lore with /give instead, giving each a color the same way /tellraw does.

/give @p diamond_sword[custom_name={text:"Blade",color:"gold",italic:false},lore=[{text:"Sharp and shiny",color:"gray"}]]

The italic:false part stops the name turning italic, which renamed items do by default.

Minecraft item tooltip with an upright gold Blade name and a gray lore line

On servers running EssentialsX, the anvil still won’t take & codes, but the /itemname command does, for players with the essentials.itemname.color permission.

In World Names and Server List Names

Java’s create-world screen won’t take §, so a colored world name means editing the save itself. Open the world’s level.dat in an NBT editor such as NBTExplorer and put § codes into its LevelName tag.

§6Gold §bAqua §fWorld

The name you give a server in your own multiplayer list works the same way, through the Name tag for that server in servers.dat. Both only change what you see on your own computer. To color what every player sees in the server list, use the MOTD.

On Bedrock you can type § straight into a world name, but the world list won’t draw the colors.

How to Type the § Symbol

On a PC, the § symbol needs a key combination, and on phones and consoles it sits behind another key.

DeviceHow to type §
WindowsAlt + 0167 on the number pad
Mac (US keyboard)Option + 6
LinuxCtrl + Shift + U, then a7 and Enter
iPhoneHold & on the symbols keyboard and slide to §
Android (Gboard)Tap ?123, then =<, and find §
Android (Samsung keyboard)Hold S and slide to §
XboxHighlight S on the keyboard and hold the select button
Nintendo SwitchSwitch to the Symbol keyboard and look on page 2

Where your keyboard has no § key, copying it from this page and pasting it works on Bedrock.

Minecraft Color Codes on Bedrock

Bedrock uses the same 16 color codes, and it’s the looser of the two editions. You can type § straight into chat, signs, and books, and nothing kicks you for it.

Bedrock also has color codes Java doesn’t. §g is minecoin gold, and the rest are material colors added for armor trims.

CodeColorHex
§gMinecoin gold#EFCE16
§hQuartz#D9CCB8
§iIron#A9B4B7
§jNetherite#8F727D
§mRedstone#EE222C
§nCopper#C87363
§pGold#FFBF1E
§qEmerald#13A045
§sDiamond#5FECFF
§tLapis#577BFF
§uAmethyst#B66CDD
§vResin#FF6A00
§wParty blue#8BB3FF

Chart of the 13 Bedrock-only Minecraft color codes from §g to §w with their names and colors

Because §m and §n are colors on Bedrock, it has no strikethrough or underline. Mojang’s bug tracker has logged §m and §n not drawing lines for years, so stick to §l, §o, §k, and §r for formatting there.

There’s one more catch. Bedrock only draws these codes in its older JSON UI screens. Menus Mojang has rebuilt in its newer Ore UI, such as the world list, show the text without its colors.

Bedrock 26.50 recolored most of these material codes, so older guides list different hex values for them. The same update made §9 blue #447FFF on Bedrock, and a few other standard colors are drawn slightly differently too, so treat the hex values in the main table as Java’s.

MiniMessage and Hex Colors: Color Codes on Modern Minecraft Servers

MiniMessage is a tag-based text format that comes built into Paper. It is an alternative to § codes, with readable tags for hex colors and gradients.

This section only applies if you are running a Paper server or another platform with Adventure API support. Vanilla servers, Fabric without mods, and Bedrock do not support MiniMessage at all.

A common mistake when moving to a Paper server is mixing old § codes into new MiniMessage strings.

MiniMessage Tag Syntax

MiniMessage wraps text in opening and closing tags instead of prefixing it with § codes.

  • Named color tags carry over cleanly: Tags like <red> and <gold> map directly to the same 16-color palette as § codes, so switching doesn’t lose anything from the legacy color range.
  • Hex colors are shorter to write: Put <#RRGGBB> or <color:#RRGGBB> before the text, with any six-digit hex value.
  • Gradients take two or more colors: <gradient:#5e4fa2:#f79459>Your text</gradient> fades from the first color to the second.
  • Formatting tags follow the same pattern: <bold>text</bold> and <italic>text</italic> work exactly as the names suggest.
  • Close every tag deliberately: MiniMessage closes any open tags at the end of a string by default, as MiniMessage’s own formatting documentation explains. Plugins that run it in strict mode don’t, so close every tag yourself.

Named tags make formatted strings far easier to scan and debug than a run of § codes. Before a string goes into a config, you can paste it into the MiniMessage Viewer to see how it looks in chat, in item lore, and in the server list.

Legacy § vs. MiniMessage: When to Use Each?

The choice comes down to server software, not preference: legacy § codes for vanilla, Bukkit, and older Spigot, and MiniMessage for anything running the Adventure API.

  • Legacy fits older setups: § codes are the right choice for vanilla, Bukkit, and older Spigot servers. MiniMessage is built for Paper and modern plugins running the Adventure API.
  • Hex isn’t MiniMessage-only: Vanilla Java has taken hex in JSON text since the 1.16 snapshots, as in "color":"#FF5500", many Spigot plugins read the legacy form &x&F&F&5&5&0&0, and EssentialsX reads &#FF5500. MiniMessage just makes hex simpler to write.
  • Never mix the two: Mixing § codes and MiniMessage tags in the same string on a Paper server produces unpredictable output or silent failures. Pick one system and use it consistently.

Legacy codes still work on Paper, so existing configs won’t break. For new ones, MiniMessage is the better choice, and Paper’s own advice is to convert legacy text to MiniMessage once because there is no supported way to use both.

Why Your Color Codes Aren’t Showing

  • You typed § into Java chat or a command block, where it’s blocked.
  • You put a raw § in server.properties instead of the escape.
  • You used & on a server with no plugin that translates it.
  • A color code came after a formatting code and switched it off.
  • You mixed MiniMessage tags and legacy codes in one string on Paper.
  • You forgot §r, so the color bled into the next line.
  • Your plugin prefix has no &r at the end, so its color runs into everything after it.

Conclusion

Minecraft color codes come down to one symbol, sixteen colors, and six formatting options once the confusion clears away.

The trick that saves the most time is remembering that the surface matters more than the code itself. Java chat blocks it, server.properties wants the escape, and commands want JSON.

Add §r at the end of every formatted string, and you skip the most common mistake beginners make. If you run a Paper server, learning MiniMessage next gives you readable hex and gradient tags.

Frequently Asked Questions

Do Minecraft Color Codes Work the Same Way in Bedrock as in Java?

Mostly. The 16 colors match, but Bedrock lets you type § in chat, signs, and books, and adds its own colors from §g to §w. On Bedrock, §m and §n are two of those colors, so they don’t draw strikethrough or underline. Java keeps § out of chat and other text boxes, so colors there come from commands, files, or plugins.

Where Can I Type § Color Codes in Vanilla Java Edition?

In files and commands rather than the game’s text boxes. That means server.properties (as the escaped code), pack.mcmeta, splashes.txt, language files, and commands like /tellraw inside data packs. Typing § into command blocks, books, or the anvil does nothing in vanilla, and sending it in chat gets you disconnected, so anywhere else needs a plugin.

Do Color Codes Work Inside /tellraw and Data Pack JSON Commands?

Yes, but the syntax changes. JSON text takes a color name such as “gold” or “dark_red”, or a hex value such as “#FF5500”. The same names set team colors with /team modify. Dyed leather armor is different and takes a number, not a name.

Author

Leave a comment

Your email address will not be published. Required fields are marked *

Author

Table of Contents

01

gaming desk setup showing wired in ear monitors for immersive gaming audio experience with computer accessories

9 Best IEMs for Gaming: Top Options for Gamers

Ever wrestled with a headset cable, only to have the headband squeeze your skull by round three? My

01

phasmophobia forest campsite at night with a flashlight and green light shining through thick fog copy

Is Phasmophobia Crossplay? Who Can Play Together

Yes, Phasmophobia is crossplay across PC (Steam), PS5, Xbox Series X|S and VR. Everyone needs Cross Play set

sword

Keep Reading

What are You Looking For?