How to Write in Color in Minecraft: Rainbow Text & Chat Codes

Writing in color in Minecraft transforms ordinary text into a vibrant tool for personalization, whether you are labeling a complex storage system, adding flair to a server message, or simply making your commands stand out. The process relies on using specific formatting codes, often called color codes or hidden codes, that the game engine recognizes and renders as distinct hues. These codes function like a secret language of symbols that you insert directly into your text strings to change the color of subsequent characters.

Understanding the Color Code Syntax

The foundation of coloring text lies in using the section sign (§) followed by a specific character that represents a color or style. On a standard keyboard, you can usually type this symbol by holding the Alt key and pressing 21 on the numeric keypad, or by copying and pasting the symbol directly from a source like this guide. It is critical to distinguish between the format used in the game client and the version used in external platforms like websites or Discord, as they often differ; Minecraft Java Edition uses the § symbol, while Bedrock Edition and some web tools may require the unicode_escape sequence §.

Selecting Your Color Palette

Minecraft provides a specific set of colors that you can apply to your text, each triggered by a unique letter or number after the section sign. These standard colors range from classic options like red (c) and green (a) to more niche choices like dark purple (5) and gray (7). If you are looking for a more specific shade or a neon-like effect, you can utilize the various "magic" characters that produce the vibrant dye colors, such as the bright pink of magenta (d) or the electric blue of lapis (9).

How to get Colored Text in Minecraft
How to get Colored Text in Minecraft

  • Basic Colors: §0 (Black), §1 (Dark Blue), §2 (Dark Green), §3 (Dark Aqua), §4 (Dark Red), §5 (Dark Purple), §6 (Gold), §7 (Gray)
  • Dye Colors: §8 (Dark Gray), §9 (Blue), §a (Green), §b (Aqua), §c (Red), §d (Pink), §e (Yellow), §f (White)

Combining Styles and Colors

One of the most powerful features of the formatting system is the ability to layer styles on top of colors, allowing you to make text bold, italic, underlined, or struck-through while retaining the hue. To achieve this, you simply place the style code after the color code within the same string. Because these codes affect all text that follows them, you must strategically place the reset code (§r) at the end of your message if you want to return to the default appearance and prevent the formatting from bleeding into the next line of text.

Practical Implementation in Chat

Typing colored text directly into the chat bar is the most straightforward method to test your combinations. You can type the section sign followed by your chosen color and then your message, all in one line. For example, typing §l§9§nHello§r would produce bold, underlined blue text. If you are using JSON text components in command blocks or data packs, the syntax shifts slightly to use the "color" and "bold" tags within the raw JSON string, though the underlying principle of applying formatting remains the same.

Advanced Usage in Resource Packs and Data Packs

For players looking to elevate their server experience, writing in color becomes essential when editing language files or crafting JSON text components for resource packs. By modifying the lang_en.json file, you can assign colored text to the names of items or blocks, effectively changing how they appear in the inventory. Similarly, Data Pack creators use these codes extensively in tellraw and title commands to create complex visual narratives that engage the player on a much deeper level.

Minecraft
Minecraft

Troubleshooting Common Issues

If your colors are not appearing as expected, the most likely culprit is an incorrect symbol or a missing space between commands. Ensure you are using the correct section sign for your platform and that you have not accidentally typed a backslash (\) instead of the § symbol. Furthermore, some servers employ plugins that sanitize chat input and strip out these codes for security reasons, which will result in the raw codes appearing as plain text rather than formatted colors.

the color code for text to be changed
the color code for text to be changed
an image of a computer game with text on the screen and characters behind it, all in different colors
an image of a computer game with text on the screen and characters behind it, all in different colors
Tip: How to Make Colored Signs in Minecraft
Tip: How to Make Colored Signs in Minecraft
an old computer game screen with numbers and colors on it, as well as the words page 1 of 1
an old computer game screen with numbers and colors on it, as well as the words page 1 of 1
the alphabet and numbers are displayed in this game
the alphabet and numbers are displayed in this game
an info sheet with different colors and shapes for the game minecraft descripts
an info sheet with different colors and shapes for the game minecraft descripts
Pigmentos do Minecraft
Pigmentos do Minecraft
the printable minecraft color by letter worksheet
the printable minecraft color by letter worksheet
an old - school computer font and numbers game with the letters in red, white and black
an old - school computer font and numbers game with the letters in red, white and black
Minecraft font and generator
Minecraft font and generator
Easy Minecraft Pixel Art Color by Letters for Beginners
Easy Minecraft Pixel Art Color by Letters for Beginners
Minecraft Color Codes — HTML Color Codes
Minecraft Color Codes — HTML Color Codes
Minecraft letter chart tip
Minecraft letter chart tip
the minecraft pixell color by letter pages are shown in front of a green background
the minecraft pixell color by letter pages are shown in front of a green background
the printable minecraft color by letter worksheet is shown in this image
the printable minecraft color by letter worksheet is shown in this image
Minecraft Font
Minecraft Font
Minecraft dye
Minecraft dye
Colored Dogs (Minecraft Command)
Colored Dogs (Minecraft Command)
Color
Color
Minecraft color codes
Minecraft color codes
some type of font that is in different colors and shapes, with the letters on each side
some type of font that is in different colors and shapes, with the letters on each side
Minecraft Chat Font
Minecraft Chat Font
Minecraft Achievement Generator
Minecraft Achievement Generator