Minecraft Color Codes & Formatting Guide

A complete reference for Minecraft color codes, HEX colors, and formatting styles. Explore Java and Bedrock compatible codes for chat, signs, books, items, MOTD, plugins, and Tellraw, with searchable tables and accurate color previews.

It is easier to try a color now! Click a swatch below, type your text to see the preview and copy to use in chats, signs, servers, and more.

Colors:
Format:
Preview Styles:

Minecraft Preview

How it looks in-game

Formatted Codes

Minecraft Standard Color Codes Reference (§0–§f)

Explore all Minecraft standard text color codes, from §0 (black) to §f (white), in a convenient, interactive grid. Quickly find any code with instant search and copy codes effortlessly with smooth feedback for your builds, signs, books, and chat.

Black

Minecraft Code:
§0
Plugin Code:
&0
MOTD Code:
\u00A70
HEX:
#000000

Dark Blue

Minecraft Code:
§1
Plugin Code:
&1
MOTD Code:
\u00A71
HEX:
#0000AA

Dark Green

Minecraft Code:
§2
Plugin Code:
&2
MOTD Code:
\u00A72
HEX:
#00AA00

Dark Aqua

Minecraft Code:
§3
Plugin Code:
&3
MOTD Code:
\u00A73
HEX:
#00AAAA

Dark Red

Minecraft Code:
§4
Plugin Code:
&4
MOTD Code:
\u00A74
HEX:
#AA0000

Dark Purple

Minecraft Code:
§5
Plugin Code:
&5
MOTD Code:
\u00A75
HEX:
#AA00AA

Gold

Minecraft Code:
§6
Plugin Code:
&6
MOTD Code:
\u00A76
HEX:
#FFAA00

Gray

Minecraft Code:
§7
Plugin Code:
&7
MOTD Code:
\u00A77
HEX:
#AAAAAA

Dark Gray

Minecraft Code:
§8
Plugin Code:
&8
MOTD Code:
\u00A78
HEX:
#555555

Blue

Minecraft Code:
§9
Plugin Code:
&9
MOTD Code:
\u00A79
HEX:
#5555FF

Green

Minecraft Code:
§a
Plugin Code:
&a
MOTD Code:
\u00A7a
HEX:
#55FF55

Aqua

Minecraft Code:
§b
Plugin Code:
&b
MOTD Code:
\u00A7b
HEX:
#55FFFF

Red

Minecraft Code:
§c
Plugin Code:
&c
MOTD Code:
\u00A7c
HEX:
#FF5555

Light Purple

Minecraft Code:
§d
Plugin Code:
&d
MOTD Code:
\u00A7d
HEX:
#FF55FF

Yellow

Minecraft Code:
§e
Plugin Code:
&e
MOTD Code:
\u00A7e
HEX:
#FFFF55

White

Minecraft Code:
§f
Plugin Code:
&f
MOTD Code:
\u00A7f
HEX:
#FFFFFF

Minecraft Formatting Codes (§k–§r)

Apply after a color code (color first!): §c§lRed Bold
All work in chat, signs, books, anvils (Java & Bedrock)

B

Bold

Code:
§l
Plugin:
&l
MOTD Code:
\u00A7l
Tellraw/JSON:
"bold":true
Description:
Makes text thicker/bold
Preview:
Bold Text Example
Compatible:
Java, Bedrock
Notes:
Works best after a color code
I

Italic

Code:
§o
Plugin:
&o
MOTD Code:
\u00A7o
Tellraw/JSON:
"italic":true
Description:
Makes text slanted/italic
Preview:
Italic Text Example
Compatible:
Java, Bedrock
Notes:
Effect is subtle in default font
U

Underline

Code:
§n
Plugin:
&n
MOTD Code:
\u00A7n
Tellraw/JSON:
"underlined":true
Description:
Underlines the text
Preview:
Underlined Text Example
Compatible:
Java, Bedrock
Notes:
Appearance depends on font and client
S

Strikethrough

Code:
§m
Plugin:
&m
MOTD Code:
\u00A7m
Tellraw/JSON:
"strikethrough":true
Description:
Draws a line through the text
Preview:
Strikethrough Example
Compatible:
Java, Bedrock
Notes:
Useful for canceled or deprecated text
?

Obfuscated

Code:
§k
Plugin:
&k
MOTD:
\u00A7k
Tellraw/JSON:
"obfuscated":true
Description:
Scrambles characters continuously
Preview:
§kMCGIC§r
Compatible:
Java, Bedrock
Notes:
Can be CPU heavy on very long text

Reset

Code:
§r
Plugin:
&r
MOTD Code:
\u00A7r
Tellraw/JSON:
N/A (new text component)
Description:
Resets all colors and formatting styles to default
Preview:
Normal text after formatting
Compatible:
Java, Bedrock
Notes:
Ends all previous formatting effects

Minecraft HEX Color Codes (Java Edition 1.16+)

Java Edition 1.16 and newer supports true HEX/RGB colors, over 16 million shades instead of the 16 legacy colors (§0–§f). Ideal for gradients, custom branding, and advanced text styling.

Important: HEX colors only work via JSON text components (commands, books via /give, titles, bossbars). They do not work with § codes in chat, signs, or anvils, use legacy colors there.

How HEX Colors Work

HEX colors use the special §x format, every character of the 6-digit HEX code is prefixed with §.

§x§R§R§G§G§B§B 

Breakdown:

  • RR = Red (00–FF)
  • GG = Green (00–FF)
  • BB = Blue (00–FF)

Example below renders "Hello" in #FF5555 (light red):

§x§F§F§5§5§5§5Hello 

Preview: Hello

Common HEX Color Examples

Color NameHEXMinecraft CodeCopy
Light Red#FF5555§x§F§F§5§5§5§5
Lime Green#55FF55§x§5§5§F§F§5§5
Bright Blue#5555FF§x§5§5§5§5§F§F
Pure White#FFFFFF§x§F§F§F§F§F§F
Hot Pink#FF55FF§x§F§F§5§5§F§F
Gold Yellow#FFD700§x§F§F§D§D§0§0

HEX vs Legacy Colors – Comparison

FeatureLegacy Colors (§0–§f)HEX Colors (§x format)
Number of colors16 fixed16,777,216 (full RGB)
Code format§a, §c, etc.§x§R§R§G§G§B§B
Gradient supportNoYes (multiple components)
Java Edition supportAll versions1.16+
Bedrock Edition supportYesNo (commands only, limited)
Where it worksChat, signs, books, anvilsJSON only: /tellraw, titles, bossbars, books via commands

Important Notes & Limitations

  • HEX colors are Java Edition only: Bedrock does not support them in chat, signs, or books.
  • Every HEX digit must be prefixed with §: missing one breaks the color.
  • Works in /tellraw, /title, boss bars, and written books via commands.
  • Plugin support for HEX (&x format) depends on the plugin (e.g. EssentialsX supports it in newer versions).
  • For Bedrock or simple chat/signs → stick to legacy colors (§0–§f).

Want to generate custom HEX gradients or convert colors? Try our Gradient Generator.

Bedrock-Only Material Colors

Available in Minecraft Bedrock Edition 1.20+ • Foreground (text) + Background (shadow) values + contrast

Minecoin Gold

Foreground:
#DDD605 (221, 214, 5)
Background:
#373501 (55, 53, 1)
Contrast:
10.8 : 1
Mood: Luxury / Currency

Quartz

Foreground:
#E3D4D1 (227, 212, 209)
Background:
#383534 (56, 53, 52)
Contrast:
7.2 : 1
Mood: Clean / Modern

Iron

Foreground:
#CECACA (206, 202, 202)
Background:
#333232 (51, 50, 50)
Contrast:
5.1 : 1
Mood: Metallic / Industrial

Netherite

Foreground:
#443A3B (68, 58, 59)
Background:
#110E0E (17, 14, 14)
Contrast:
2.1 : 1
Mood: Dark / Ominous

Redstone

Foreground:
#971607 (151, 22, 7)
Background:
#250501 (37, 5, 1)
Contrast:
3.8 : 1
Mood: Energetic / Fiery

Copper

Foreground:
#B4684D (180, 104, 77)
Background:
#2D1A13 (45, 26, 19)
Contrast:
5.9 : 1
Mood: Warm / Aged

Gold

Foreground:
#DEB12D (222, 177, 45)
Background:
#372C0B (55, 44, 11)
Contrast:
9.6 : 1
Mood: Rich / Shiny

Emerald

Foreground:
#119F36 (17, 159, 54)
Background:
#04280D (4, 40, 13)
Contrast:
7.5 : 1
Mood: Fresh / Gemstone

Diamond

Foreground:
#2CBAA8 (44, 186, 168)
Background:
#0B2E2A (11, 46, 42)
Contrast:
8.9 : 1
Mood: Cool / Precious

Lapis

Foreground:
#21497B (33, 73, 123)
Background:
#08121E (8, 18, 30)
Contrast:
4.6 : 1
Mood: Deep / Mystical

Amethyst

Foreground:
#9A5CC6 (154, 92, 198)
Background:
#261731 (38, 23, 49)
Contrast:
5.8 : 1
Mood: Magical / Purple

Resin

Foreground:
#EB7114 (235, 113, 20)
Background:
#3B1D05 (59, 29, 5)
Contrast:
8.4 : 1
Mood: Warm / Fiery

Frequently Asked Questions

Common questions about Minecraft color codes, formatting, HEX colors, Java vs Bedrock differences, plugins, MOTDs, and more.

Why do HEX colors not work in chat, signs, or anvils?

HEX colors (§x§R§R§G§G§B§B) only work in Minecraft Java Edition 1.16+ when used through JSON text components such as /tellraw, /title, boss bars, or NBT-based books.

They do not work in normal chat, signs, anvils, item renaming, or vanilla MOTDs. For those, use legacy color codes (§0–§f).

What is the difference between legacy colors and HEX colors?

Legacy colors (§0–§f) are the original 16 Minecraft colors supported everywhere.

HEX colors allow millions of shades but require Java 1.16+ and JSON-based text. Legacy colors are universal; HEX colors are more flexible but limited in where they work.

Do Bedrock Edition players support HEX colors?

No. Minecraft Bedrock Edition does not support HEX color codes.

Bedrock supports legacy colors (§0–§f) and additional material color codes, which are mainly used internally and for UI rendering.

Do Java and Bedrock players see the same colors?

Legacy colors and formatting codes appear mostly the same on Java and Bedrock.

Minor differences may occur due to:

  • Font rendering differences
  • Screen brightness or gamma settings
  • Resource packs or custom fonts

Bedrock-only material colors do not display correctly on Java clients.

Can I combine HEX colors with formatting like bold or italic?

Yes, in Java 1.16+ JSON text:

{"text":"Bold Red","color":"#FF5555","bold":true} 

Or using §x format:

§x§F§F§5§5§5§5§lBold Light Red 
Why does obfuscated (§k) text look glitchy?

Obfuscated text intentionally replaces characters every frame. This can cause visual noise or performance issues if overused, especially in long text, menus, or MOTDs.

How do I stop obfuscated text from continuing?

Obfuscation affects all following characters until a reset code is used. Insert §r before applying a new color or format to stop it.

How do I create gradients or rainbow text?

Minecraft has no native gradient support.

In Java 1.16+, gradients are simulated by applying a different HEX color to each character using JSON text.

/tellraw @a [{"text":"R","color":"#ff0000"},{"text":"a","color":"#ff8800"}] 

In chat or signs, gradients can only be faked using alternating legacy colors.

Do plugins support HEX colors?

Support depends on the plugin and server version:

  • EssentialsX (newer versions): HEX supported
  • LuckPerms: HEX supported in prefixes and metadata
  • Older plugins: Legacy colors only
What is the difference between § and & codes?

§ is Minecraft’s official formatting character.

& is used by plugins and configuration files as a placeholder and is converted to § before being sent to players.

Why do colors reset after a line break?

New lines often reset formatting. To keep colors consistent, reapply the color code at the beginning of each line.

Can I use color codes in item names and lore?

Yes. Legacy color codes work in item names and lore. HEX colors require NBT or JSON-based commands in Java 1.16+.

Why do MOTD colors look different from in-game chat?

MOTDs are rendered by the server list interface, not the game world. Font weight, spacing, and brightness can differ slightly.

Are Minecraft color codes case-sensitive?

No. Color and formatting codes are not case-sensitive. §a and §A behave the same.

What does the reset code (§r) do?

§r resets all colors and formatting back to default. It is commonly used to prevent unwanted formatting carryover.

This reference is updated as Minecraft versions and formatting behavior evolve.