Minecraft Guides23 min read•26 views

Minecraft Color Codes: Ultimate Guide for Java and Bedrock

Minecraft color codes explained: every Java and Bedrock color and format code, hex colors, MOTD tricks, and a free hex generator.

joynalbokhsho
joynalbokhsho
Published Dec 5, 2026
Minecraft Color Codes: Ultimate Guide for Java and Bedrock
On This Page (12)

If you have ever seen bright, bold, or rainbow text in Minecraft chat, on a sign, or on a server list, you have already seen minecraft color codes at work. These short codes change the color and style of text in the game, and they are one of the simplest ways to make your messages stand out. A single code can turn plain white text green, gold, red, or aqua, and a second code can make it bold or italic. Players use them for chat, signs, books, item names, and server MOTDs. Server owners use them to brand a server, highlight rules, and make announcements easy to read. This guide covers all 16 colors, all 6 format codes, Bedrock-only material colors, hex colors, MOTD tricks, and the MOTD generator below, so you can copy a code and use it in seconds.

Advertisement

How minecraft color codes Work

A Minecraft color code is the section sign §, followed by one character. The character can be a digit from 0 to 9, or a letter from a to f for a color, or a letter from k to r for a format. When the game reads §a, for example, every character after it turns green, until another color code changes it. When it reads §l, the text after it turns bold. The code itself does not show in the finished text, and it takes no space in the visible message. You write the code, then the text you want to color, then another code if you want to change color again.

Many plugins accept & as a substitute for §, because § is awkward to type on some keyboards. In a plugin config file, &aHello usually means the same thing as §aHello. In the game itself, the official symbol is §, and plugins translate & into § when they load the text. Check your server or plugin guide first, because a few plugins use a different symbol, or require you to enable color codes in their settings.

A new color code resets formatting on Java, so always put the color first, then the formatting code. If you write §l§aHello, Java reads the bold code first, then the color code, and the color code clears the bold, so the result is plain green text. If you write §a§lHello, Java reads green first, then bold, and the result is bold green text. That order rule is the most common source of confusion, and it is easy to fix once you know it. On Bedrock, the rule is different, and formatting codes keep working after a color code, as explained in the formatting section below.

All 16 Minecraft Color Codes

The table below lists all 16 minecraft color codes, with the code, the color name, the hex value, the JSON name used in commands, and a preview square. Learn the letters for the colors you use most, such as §a for green, §c for red, §e for yellow, and §b for aqua. The digits 0 to 9 cover black through blue, and the letters a to f cover green through white. The hex values are the exact colors used by Java Edition, and they are the values to use when you want to match a classic color in a hex picker or a website design.

CodeColor NameHexJSON NamePreview
§0black#000000black
§1dark blue#0000AAdark_blue
§2dark green#00AA00dark_green
§3dark aqua#00AAAAdark_aqua
§4dark red#AA0000dark_red
§5dark purple#AA00AAdark_purple
§6gold#FFAA00gold
§7gray#AAAAAAgray
§8dark gray#555555dark_gray
§9blue#5555FFblue
§agreen#55FF55green
§baqua#55FFFFaqua
§cred#FF5555red
§dlight purple#FF55FFlight_purple
§eyellow#FFFF55yellow
§fwhite#FFFFFFwhite
Note: on Bedrock, gray renders as #C6C6C6 and blue as #447FFF, slightly different from Java. The other classic colors are close enough that most players will not notice a difference, but if you are matching a server logo or a website color exactly, test it on Bedrock first. Bedrock also has extra material colors, which are listed in the Bedrock-only section below.
media generation minecraft color chart wall 0 7f7bbc60 4245 42e4 8307 96e4917ca34e
Advertisement

All 6 Formatting Codes

Color is only half the story. Formatting codes change the style of text, and they work alongside minecraft color codes to make a message bold, italic, underlined, or scrambled. The table below lists all 6 formatting codes, what each one does, and whether it works on Bedrock. Use them sparingly, because a whole paragraph in bold or obfuscated text is hard to read. A short bold title, an italic subtitle, or a single obfuscated word for a fun effect is usually enough.

CodeEffectWorks on Bedrock
§lBoldYes
§oItalicYes
§nUnderlineNo
§mStrikethroughNo
§kObfuscatedYes
§rResetYes

Obfuscated, written as §k, shows random scrambling characters that change several times per second. The hidden text is still there, and the scrambling hides it until the code is removed, or until a reset code follows it. Players use it for surprise text, lottery results, and secret messages, but it is a poor choice for rules or instructions, because nobody can read it while it is active.

Reset, written as §r, resets all color and formatting. It returns the text to plain white, with no bold, italic, underline, strikethrough, or obfuscation. Put §r at the end of a colored message if the next message in the same line should start clean, or after a colored title before a plain description. It is also the safe way to end a line in a plugin config file, so a color does not leak into the next line.

The order rule matters here, too. On Java, §a§l gives bold green, because the color comes first and the bold comes second. §l§a gives plain green on Java, because the color code after the bold code resets the bold. Write the color first, then the format, every time, and you will get the result you expect. On Bedrock, formatting codes keep working after a color code, unlike Java, so §l§a and §a§l both give bold green on Bedrock. That difference catches many players out when they move a message from one edition to the other.

Advertisement

Bedrock-Only Material Colors

Bedrock Edition 1.19.80 and later adds 12 extra colors, called material colors. These colors are based on Minecraft materials, such as gold, iron, diamond, and emerald, and they give Bedrock players more choices than the classic 16. They are not available on Java, so do not use them if your message must look the same on both editions. On Bedrock, §m and §n are material colors, not strikethrough and underline, which is why those two formats do not work on Bedrock. That reuse of two letters is confusing at first, so check the table below before you use §m or §n on Bedrock.

CodeNameHexPreview
§gMinecoin Gold#EFCE16XX
§hQuartz#D9CCB8XX
§iIron#A9B4B7XX
§jNetherite#8F727DXX
§mRedstone#EE222CXX
§nCopper#C87363XX
§pGold#FFBF1EXX
§qEmerald#13A045XX
§sDiamond#5FECFFXX
§tLapis#577BFFXX
§uAmethyst#B66CDDXX
§vResin#FF6A00XX

Minecoin Gold, written as §g, is a soft yellow gold, while Gold, written as §p, is a brighter, warmer gold. Diamond §s is a bright cyan, close to aqua but a little paler, and Emerald §q is a deep green. Quartz §h is a pale cream, Iron §i is a cool light gray, and Netherite §j is a muted purple gray. Use these colors for Bedrock signs, chat, and MOTDs when you want a color that the classic 16 do not offer, and test them in game first, because they can look different on a dark background than on a light one.

Java vs Bedrock: What Works Where

Java and Bedrock share the same basic idea, but they do not share every feature. The table below compares the main differences, so you can plan a message that works on the edition your players use. If you run a cross-platform server, such as BD ZONE, with Java and Bedrock players together, choose the features that work on both editions, or accept that Bedrock players will see a slightly different result.

FeatureJavaBedrock
Section sign in chatNot supported, use commandsType it directly
Section sign on signsJSON via commands on 1.20 and later, or pluginsType it directly
Custom hex colorsYes via JSONNot supported, use the nearest classic or material color
Minecoin Gold and material colorsNoYes
Underline and strikethroughYesNo
Formatting after a color codeResetsPersists

The biggest practical difference is chat. On Bedrock, you can type § directly into chat, and the color will work. On Java, typing § into chat does nothing, because Java chat does not parse color codes. Java players need a command, such as /tellraw, or a plugin, to send colored text. The same split applies to signs. On Bedrock, you can type the code on the sign. On Java 1.20 and later, you need JSON via commands, or a plugin that adds color support to signs. Check the version of the server you play on, because older Java versions had different sign rules, and a few servers change them with plugins.

Advertisement

Hex Colors in Minecraft

The classic 16 colors are a good start, but hex colors open up millions of choices. Java 1.16 and later supports hex versions of minecraft color codes through JSON text components, so a server owner or map maker can use any color, not just the classic 16. In JSON, you set the color with "color":"#RRGGBB", where RRGGBB is the hex code. For example, "color":"#FF5555" gives the same red as §c, and "color":"#55FF55" gives the same green as §a. You can use that form in /tellraw, /title, books, signs through commands, and plugin messages that support JSON.

Bukkit, Spigot, and Paper servers also support the §x format, which writes a hex code as six section sign pairs. The pattern is §x§R§R§G§G§B§B, where each pair is one hex digit. For example, §x§F§F§5§5§5§5 is #FF5555, red. The same pattern works in MOTDs, with & in place of § in many plugin configs, as &x&R&R&G&G&B&B. If you paste a hex code into a plugin config and it shows as plain text, check whether the plugin expects §x, &x, or JSON, because each one looks different.

MiniMessage, used by Paper plugins, uses a simpler form:
<#RRGGBB>
for a single color, and
for a gradient that blends from red to gold across the text. Gradients are popular for server names, rank titles, and MOTDs, because they look smooth and modern. A short gradient MOTD example is
Welcome to BD ZONE
, which starts red on the left and ends gold on the right. Test a gradient on both Java and Bedrock if you run a cross-platform server, because Bedrock has no hex support, so pick the nearest of the 16 classic colors or a material color for Bedrock players.
media generation minecraft hex enchanting 0 72817d3e 9ad5 48d3 92bf 7da19fae58e6
Advertisement

How to Type the § Symbol for Minecraft Color Codes

Typing § is the first hurdle for many players, because it is not on a standard keyboard layout. On Windows, hold Alt and type 0167 on the numpad, then release Alt, and § will appear. On macOS, press Option plus 6. On Linux, press Ctrl plus Shift plus U, then type 00A7, then press Enter. On Android and iOS, long-press & on the keyboard, or copy § from this article and paste it where you need it, and on Bedrock mobile you can paste it straight into chat. Note many plugins let you type & instead, which is much easier on a phone keyboard, so check your server guide first.

Where to Use Minecraft Color Codes

Color codes work in more places than chat. On Bedrock, you can use them in chat, on signs, and in server names. On Java 1.20 and later, signs work through JSON or commands, and plugins can add direct color support. Books and quills can hold colored text, and an anvil item rename can use color codes on servers that allow it. The server MOTD, shown in the server list, is one of the best places for color, because it is the first thing a player sees. Commands such as /tellraw and /title use JSON, and plugin configs use & codes in most cases.

Here is one /tellraw example with a hex color: /tellraw @a {"text":"Welcome to BD ZONE","color":"#55FF55"}. That command sends green text to every player. Here is one MOTD example line using \u00A7 escapes for Java server.properties: motd=\u00A7aWelcome to BD ZONE \u00A7ePlay now!, and the same line with a literal § for a Bedrock server name: §aWelcome to BD ZONE §ePlay now!. Use the escape form in server.properties, because a literal § in that file can show as raw code, as explained in the mistakes section below.

Advertisement

Common Minecraft Color Codes Mistakes and Fixes

My bold vanished after a color code: on Java, a color code resets formatting, so put the color first, then the format, as in §a§l, not §l§a. § does nothing in Java chat: Java chat does not parse color codes, so use /tellraw, /title, or a plugin instead. Underline and strikethrough do nothing on Bedrock: Bedrock does not support §n and §m as formats, and on Bedrock 1.19.80 and later those codes are material colors instead. MOTD shows raw § codes: use \u00A7 escapes in server.properties, not a literal §. Colors look different on Bedrock: gray and blue have different hex values on Bedrock, so test your colors there. §m and §n give colors on Bedrock instead of strikethrough and underline: use the classic colors or a material color, and do not expect those formats on Bedrock.

Advertisement

Minecraft Color Codes FAQ

Do Minecraft Color Codes work in Java chat? No, minecraft color codes do not work in Java chat. Typing §a in Java chat will show the code as plain text, or do nothing. Use /tellraw, /title, or a plugin to send colored text on Java. On Bedrock, you can type the code directly into chat.

Why did my bold disappear after a color code? On Java, a color code resets formatting, so §l§a gives plain green, not bold green. The Minecraft Color Codes order rule is simple: put the color first, then the format, as in §a§l. On Bedrock, formatting persists after a color code, so the order matters less there.

Can I use hex colors on Bedrock? No, Bedrock has no hex color support. The Minecraft Color Codes system on Bedrock is limited to the 16 classic colors and the 12 material colors. Pick the nearest classic or material color to your hex color, using the picker above, which shows the nearest classic code for every hex you choose.

What is the § symbol called? The § symbol is called the section sign. It is also called the section symbol, and in Minecraft guides it is often just called the color code symbol. On Windows you can type it with Alt plus 0167 on the numpad, and on macOS with Option plus 6.

Do Minecraft Color Codes work on signs? Yes, on Bedrock you can type them directly on a sign. On Java 1.20 and later, you can use JSON via commands, or a plugin that adds color support to signs. Check your server version and plugins, because sign rules changed between Java versions.

Why does my MOTD show raw § codes? Your server.properties file needs \u00A7 escapes, not a literal §. The Minecraft Color Codes in a Java MOTD should look like \u00A7aWelcome, and a literal § in that file can show as raw text. On Bedrock, use a literal § in the server name instead.

Does obfuscated §k work on Bedrock? Yes, §k works on Bedrock, and it shows the same random scrambling characters as on Java. Use it for fun, surprise text, or a secret message, not for rules or instructions, because the text cannot be read while it is obfuscated.

Conclusion

You now know how minecraft color codes work, from the 16 classic colors and 6 format codes to Bedrock material colors, hex colors, and MOTDs. This Minecraft Color Codes guide gave you the tables, the order rule, the typing shortcuts, and a free picker and generator, so you can stop guessing and start using color with confidence. Pick a color above, copy the code in the format your server needs, and test it in game before you use it in a big announcement. Try your colors on BD ZONE, Java IP play.bdzonemc.com and Bedrock pe.bdzonemc.com port 19132.

Generate Hex Color Codes with the MOTD Generator

If you want hex color codes without working out each code by hand, use the Minecraft MOTD Generator at https://minecraftbd.com/tools/motd-generator

The tool lets you design a two line MOTD with hex gradients of two to five stops, add color and formatting codes, and copy the result for server.properties, MiniMessage, or Velocity. It also has a gradient generator, quick insert codes, and the official color and formatting codes to click and insert.

Open the MOTD Generator, type your text, pick your colors, copy the export that matches your server, and paste it where your server reads the MOTD.

Try it on your own server MOTD and see the colors in the server list before you publish them to players.

Tags:#minecraft color codes#minecraft hex color codes#minecraft color code generator#bedrock color codes#java color codes#section sign#minecraft motd colors