Minecraft Color Codes

Minecraft Color Codes Explained

Minecraft is one of the most popular 3D sandbox games. The game gives you creative freedom but allowing you to build anything (but, we are not going into that today). In this article, I will discuss Minecraft color codes, formatting codes and how to write in color on Minecraft.

There are color codes that let the Minecraft players modify the text color of in-game text such as chat messages, game commands and even the team colors.

Also, further in this post, I am going to share the Minecraft format codes which are used to change the style/format of the text. But, before that, let us take a look at all the MC color codes available in the Minecraft game.

List of All Minecraft Color Codes

Minecraft has a set number of colors that you can choose to be the color of the text you type in the game. The table below lists all the color codes available in the Minecraft game.

ColorMinecraft NameChat CodeMOTD CodeDecimalHexadecimal
Dark Reddark_red§4\u00A7411141120AA0000
Dark Greendark_green§2\u00A724352000AA00
Dark Aquadark_aqua§3\u00A734369000AAAA
Dark Bluedark_blue§1\u00A711700000AA
Light Purplelight_purple§d\u00A7d16733695FF55FF
Dark Purpledark_purple§5\u00A7511141290AA00AA
Dark Graydark_gray§8\u00A785592405555555


As you can see in the table, the codes for the same color are different for Chat and Message of the Day (MOTD). Also, the decimal and hexadecimal codes vary for the same color.

So, which code to use for what?

Relax, it is not as hard as it may seem. Here’s how to do it.

Changing Minecraft Text Color

Chat Text Color: For changing the color of your Minecraft chat, you need to use the color codes mentioned in the column ‘Chat Code’ from the table above.

Minecraft chat color code is a combination of section sign (§) and a hex digit i.e. any number between 0-9 or an alphabet between A-F. For example, §e changes the text color to yellow while §2 turns the text color to dark green.

You can simply copy the chat color code from the table and use it to change the chat text color by appending the code before your text.

Say, you want to send ‘Hello World’ in the dark purple color. Just write ‘§5Hello World’ (without quotes) and see the magic! 😉

How to type section sign (§) in Minecraft?

You must be aware that Minecraft chat does not allow pasting text, that’s why it is important to know how to type the section sign used in the Minecraft color codes.

  • macOS: ⌥ Option+6.
  • Linux: Compose+S+O.

MOTD Color: As I mentioned, you can change the color of the Message of the Day text that is set on the server. But the MOTD color code is a little different from the chat color code.

As the message of the day is set on the server.properties, you have to change the section sign(§) into its equivalent Unicode i.e. \u00A7.

So, for changing the MOTD color, you must use \u00A7 and the hex digit that defines the color. See the table above for the MOTD codes.

Minecraft Formatting Codes

Apart from changing the colors of the text, you can use Minecraft formatting codes to customize the font styling such as bold, italic, underline and strikethrough.

The table below lists all the formatting codes available in the Minecraft game.

DescriptionChat CodeMOTD Code
Reset Default§r\u00A7r


Like you can see, there are four formatting codes that are used to style the text in Minecraft. These codes work both on the chat text as well as the MOTD text.

Usage of Minecraft Formatting codes pretty much the same as the color codes.

To change the format of the chat text, you have to put the section sign(§) + a letter (l,m,n,o) before the chat text. Similarly, to format the message of the day text, you must prepend \u00A7 + a letter (l,m,n,o) with text.

If you want to reset the color or format of the text, just use §r or \u00A7r and the text format will change to the default color.

The format codes are a handy way to different chat text and game commands depending upon the preference of the players.

Pro Tip: While changing the format and the color at the same time, always use the color code before the formatting code. If the order is not correct, the format will mess up.

Minecraft Color Code Generator / Tester

With so many color codes and formatting codes available, it gets difficult especially while playing an intense combat mode fight on Minecraft.

With this little tool, you can literally skip memorizing all the color codes!

The Minecraft Color Code Generator tool gives you the freedom to generate pre-formatted and colored text in just a few clicks.

Gamers also use this tool to test their color codes and format codes without having to send chat messages repeatedly or changing the server.properties file again and again.

Using MC Color Code Generator

The tool is really very easy to use with a simple user interface.

The top section of the tool is divided into two parts. The left part has colored buttons for each color code while the right part has buttons to insert the formatting codes.

Just below the buttons section, you have the text field where you can enter your chat/MOTD text. You can also see the preview of the text right beside the text field.

To generate the desired code, first, click the color button (or the format button) from the top section. Then, add the text you want in the text field. The preview will appear immediately.

Now, you can copy the code for the colored/formatted text in the Minecraft game. Simple as that!

You can also change the background of the preview text. There are three options – default Minecraft background, grey and dark purple.

And that’s all! If you have any questions related to Minecraft color codes or formatting code, just drop them in the comments section below.

event_note December 19, 2019

account_box Justin Dawson

Leave a Reply

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

three × 5 =