minecraft java colored text

Minecraft Java Colored Text: Ultimate Guide to Rainbow Chat & Name Styling

By
AD

Minecraft Java colored text transforms your in-game communication from basic chat logs into a dynamic visual experience. Whether you are running a complex modded server, managing a community Discord, or simply want your personal world to feel more immersive, mastering color codes is an essential skill. This guide breaks down the mechanics of formatting, providing the exact syntax and practical examples you need to implement vibrant text directly into your Minecraft Java Edition client.

Understanding the Formatting Code System

The foundation of Minecraft Java colored text lies in the section sign, represented by the ampersand symbol (&). This character acts as a trigger that tells the game the following hex digit or letter corresponds to a specific style or color. To ensure the game interprets this correctly rather than displaying the ampersand literally, you must use a hex color code or format literal immediately after it. The character that follows the section sign is case-sensitive, so using lowercase letters is the standard and most reliable practice across all versions of the game.

The Color Palette and Codes

Minecraft provides a specific set of hexadecimal color codes that map to the game's texture palette, ensuring consistency across blocks, items, and text. Each color is assigned a unique letter, ranging from 0 through 9 and then A through F. To apply a specific color to your text, you place the section sign followed by the corresponding color key. Below is a quick reference for the primary text colors available in the Java Edition.

AD
Minecraft 1.20 - Trails & Tales Update
Minecraft 1.20 - Trails & Tales Update
Textcraft: Text & logo maker - Minecraft, 8-bit styles and more
Textcraft: Text & logo maker - Minecraft, 8-bit styles and more
Minecraft font by Craftron Gaming — FontRiver
Minecraft font by Craftron Gaming — FontRiver
Color Code Visual Example
Black &0 Black
Dark Blue &1 Dark Blue
Dark Green &2 Dark Green
Dark Aqua &3 Dark Aqua
Dark Red &4 Dark Red
Dark Purple &5 Dark Purple
Gold &6 Gold
Gray &7 Gray
Dark Gray &8 Dark Gray
Blue &9 Blue
Green &a Green
Aqua &b Aqua
Red &c Red
Light Purple &d Light Purple
Yellow &e Yellow
White &f White

Implementing Formatting Styles

Beyond color, you can apply visual weight and emphasis to your text using formatting codes. These styles modify the font display to create bold, underlined, or italicized effects, allowing for intricate text hierarchies. Much like the color codes, you apply these by inserting the section sign followed by a specific character. You can stack multiple styles together by chaining these codes, though the game has limitations on how many formatting tags it will apply to a single line of text.

Available Style Codes

  • l (Lowered L): Makes the text bold.
  • m: Renders the text with a strikethrough.
  • n: Underlines the text.
  • o: Italicizes the text.
  • k: Applies a randomized "glitch" effect that shifts the characters randomly.

Combining Colors and Styles

The true power of the formatting system emerges when you combine color and style codes. You can create a single string of text where the formatting changes multiple times, allowing for rainbow effects or highlighted keywords within a sentence. The key rule to remember is that the formatting persists until you explicitly change it or reset it. To reset the text to the default game style, you must insert a section sign followed by the number 7 (&7), which represents the vanilla white color.

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
Helpful Minecraft Color Codes and Format Codes
Helpful Minecraft Color Codes and Format Codes
an image of the color chart for different colors
an image of the color chart for different colors

Practical Example

Imagine you want the word "Danger" to appear in bold red text. You would construct the string by first setting the color to red (&c), then activating the bold style (&l), and then typing the word. If you wanted to continue writing in the default style afterward, you would close the formatting with &r or &7. The resulting code would look like this: &c&lDanger&r normal text. This flexibility allows server owners to create custom messages that are impossible to miss, ensuring critical game information stands out.

Utilizing Hex Colors (1.16+)

Starting with Minecraft version 1.16, the game expanded the formatting options to include full RGB hexadecimal color codes. This feature moves beyond the limited 16-color palette and allows for millions of colors, providing much greater creative freedom. To use a hex color, you insert the section sign followed by the number x, and then concatenate the six-digit hex code directly after it without spaces. This method bypasses the standard letter-based color codes entirely, offering pixel-perfect color matching for your server branding or map themes.

AD

Example of Hex Code Syntax

To apply a specific shade of blue defined by the hex code #32CD32 (a bright spring green), you would type &x32CD32 in your chat or command block. The game reads the "x" as the marker for the hex string and then processes the following six characters to determine the exact color. This functionality is particularly useful for map makers and server administrators who need to adhere to specific design schemes, ensuring that floating text or boss bars integrate seamlessly with the overall visual aesthetic of the world.

the color code for text to be changed
the color code for text to be changed
Minecraft Font Generator | FontsPool
Minecraft Font Generator | FontsPool
Minecraft Chat Font
Minecraft Chat Font
Minecraft on X
Minecraft on X
Pixel Font Symbols for Minecraft Letters | Download Creative Alphabet Styles
Pixel Font Symbols for Minecraft Letters | Download Creative Alphabet Styles
an old computer game screen with the words dark blue, green and red on it
an old computer game screen with the words dark blue, green and red on it
Minecraft Font Download
Minecraft Font Download
an advertisement for the beginning of adventure made in minecraft, with a box on it
an advertisement for the beginning of adventure made in minecraft, with a box on it
Minecraft prefix pack
Minecraft prefix pack
Free Minecraft Text Effect - Commercial Use Fonts & Graphics Freebies
Free Minecraft Text Effect - Commercial Use Fonts & Graphics Freebies
Bienvenue sur le site officiel de Minecraft
Bienvenue sur le site officiel de Minecraft
Minecraft-Inspired Pixel Font: Alphabet, Numbers SVG - Retro Gaming Typography for Crafting &... | pixel font free download 593.82.4.10147
Minecraft-Inspired Pixel Font: Alphabet, Numbers SVG - Retro Gaming Typography for Crafting &... | pixel font free download 593.82.4.10147
an image of some sort of text on a screen with the words in different languages
an image of some sort of text on a screen with the words in different languages
Yea
Yea
Minecraft Logo PNG
Minecraft Logo PNG
Retro Minecraft
Retro Minecraft
goku
goku
the color chart for different types of colors and their corresponding names in each column,
the color chart for different types of colors and their corresponding names in each column,
Minecraft end credit poem excerpt
Minecraft end credit poem excerpt
an old - school computer screen with the text minecraft formating on it's side
an old - school computer screen with the text minecraft formating on it's side
AD