All 16 Minecraft color codes and formatting codes with hex values, MOTD formats, JSON output, and live preview.
Java 1.16+ supports any RGB color in JSON text components.
§fHello Minecraft!&fHello Minecraft!\u00A7fHello Minecraft!{"text":"Hello Minecraft!","color":"white"}Alt+0167Option+6Ctrl+Shift+U 00A7Most server plugins accept & as a substitute for §. For MOTDs in server.properties, use \u00A7.
| Code | Name | Hex | Copy |
|---|---|---|---|
| §0 | Black | #000000 | |
| §1 | Dark Blue | #0000AA | |
| §2 | Dark Green | #00AA00 | |
| §3 | Dark Aqua | #00AAAA | |
| §4 | Dark Red | #AA0000 | |
| §5 | Dark Purple | #AA00AA | |
| §6 | Gold | #FFAA00 | |
| §7 | Gray | #AAAAAA | |
| §8 | Dark Gray | #555555 | |
| §9 | Blue | #5555FF | |
| §a | Green | #55FF55 | |
| §b | Aqua | #55FFFF | |
| §c | Red | #FF5555 | |
| §d | Light Purple | #FF55FF | |
| §e | Yellow | #FFFF55 | |
| §f | White | #FFFFFF | |
| §gBE | Minecoin Gold | #DDD605 | |
| §k | Obfuscated | \u2014 | |
| §l | Bold | \u2014 | |
| §m | Strikethrough | \u2014 | |
| §n | Underline | \u2014 | |
| §o | Italic | \u2014 | |
| §r | Reset | \u2014 |
Minecraft uses 16 color codes (0-9, a-f) and 6 formatting codes (bold, italic, underline, strikethrough, obfuscated, reset) to style text in chat, signs, books, commands, and server MOTDs. Each color maps to a specific hex value used for rendering.
The Minecraft color code reference above shows all 22 formatting codes with their hex values, a visual color swatch, and a
live preview. Type text and apply colors to see exactly how it will appear in-game. Copy the codes for use in server configurations, plugin setups, or command blocks.
Color codes work in both Java and Bedrock Edition, though the input method differs. Java Edition primarily uses them in JSON text components and server plugins, while Bedrock Edition supports the section sign directly in chat and signs.
| Code | Name | Hex | Preview |
|---|---|---|---|
| 0 | Black | #000000 | |
| 1 | Dark Blue | #0000AA | |
| 2 | Dark Green | #00AA00 | |
| 3 | Dark Aqua | #00AAAA | |
| 4 | Dark Red | #AA0000 | |
| 5 | Dark Purple | #AA00AA | |
| 6 | Gold | #FFAA00 | |
| 7 | Gray | #AAAAAA | |
| 8 | Dark Gray | #555555 | |
| 9 | Blue | #5555FF | |
| a | Green | #55FF55 | |
| b | Aqua | #55FFFF | |
| c | Red | #FF5555 | |
| d | Light Purple | #FF55FF | |
| e | Yellow | #FFFF55 | |
| f | White | #FFFFFF | |
| gBE | Minecoin Gold | #DDD605 |
Server MOTDs:
Server owners use color codes in the server.properties MOTD field or in server plugins to create colorful server descriptions on the multiplayer server list. Many plugins accept & as a section sign substitute.
JSON text components: Commands like /tellraw and /title accept JSON with custom hex colors. Use "color":"#FF5555" for any RGB value, not just the 16 preset colors.
Sign coloring:
On Bedrock Edition, type the section sign before a color code on a sign to color subsequent text. On Java Edition (1.20+), signs support JSON text components through commands for colored text.
Formatting order: When combining color and formatting codes, always apply the color first, then the formatting (bold, italic, etc.). Applying a new color code resets all active formatting, so you need to reapply formatting after each color change.
| Feature | Java Edition | Bedrock Edition |
|---|---|---|
| § in chat | Not supported (use commands) | Supported directly |
| § on signs | Use JSON via commands (1.20+) | Type § directly on sign |
| Custom hex colors | Yes, via JSON (#RRGGBB) | Not supported |
| Minecoin Gold (§g) | Not available | Yes (1.19.80+) |
| Formatting reset | New color resets all formatting | New color resets all formatting |
| MOTD colors | \u00A7 in server.properties | § in server settings |
Use the section sign followed by a code character. In Java Edition, JSON text components in commands support both preset codes and custom hex colors. Server plugins typically accept & as a shortcut for the section sign.
16 color codes (0-9, a-f) and 6 formatting codes (bold, italic, underline, strikethrough, obfuscated, reset) for a total of 22 formatting codes.
Minecraft has two greens: Dark Green (code 2, hex #00AA00) and Green (code a, hex #55FF55). The brighter green is more commonly used in plugin configurations and server UIs.
Yes, in Java Edition. JSON text components (used in /tellraw, books, signs via commands) support custom hex colors like #FF5555. Server plugins like EssentialsX also support hex via the &#RRGGBB format.
On Windows, hold Alt and type 0167 on the numpad. On Mac, press Option + 6. On Linux, press Ctrl+Shift+U, type 00A7, then Enter. Most server plugins also accept & as a substitute.
Both editions use the same 16 color codes. Bedrock lets you type § directly in chat and signs, while Java uses JSON text components. Bedrock has an exclusive §g Minecoin Gold color (#DDD605). Java supports custom hex colors in JSON, which Bedrock does not.
Browse more Minecraft tools: