SUMMER SALE-30% OFFwithSUMMER30

Minecraft Minecraft Updated Jul 21, 2026

How to Use Minecraft Color Codes on Your Server

Learn how to use Minecraft color codes and formatting codes for your server's MOTD, chat, signs, books, and command output on Java Edition or Bedrock Edition.

Minecraft uses Minecraft color codes to add colour and formatting to text in your server's MOTD, chat messages, signs, and books. Both Minecraft Java and Minecraft Bedrock Edition support this system, though Bedrock adds a few colour codes of its own that Java doesn't have. Every code starts with the symbol § followed by a character, or & if you're using a plugin that converts it automatically.

All 16 Minecraft color codes shown in chat, from Black and Dark Grey to Gold and White, with bold, underline, and obfuscated text formatting examples

Minecraft Color Codes

Minecraft Java Edition Color Codes

These are the standard Minecraft Java colour codes:

Code Colour Code Colour
&0 Black &8 Dark Grey
&1 Dark Blue &9 Blue
&2 Dark Green &a Green
&3 Dark Aqua &b Aqua
&4 Dark Red &c Red
&5 Dark Purple &d Light Purple
&6 Gold &e Yellow
&7 Grey &f White

Minecraft Bedrock Edition Color Codes

Minecraft Bedrock colour codes also include a set of exclusive material colours, only available on Bedrock and only using the § symbol rather than &:

Code Colour Code Colour
§g Minecoin Gold §n Copper
§h Quartz §p Gold
§i Iron §q Emerald
§j Netherite §s Diamond
§m Redstone §t Lapis
§v Resin §u Amethyst

These codes don't map to a standard Java colour, so a Bedrock player and a Java player will never see quite the same shade for the same code.

Minecraft Formatting Codes

Code Effect Java Bedrock
&k Obfuscated (random characters) Yes Yes
&l Bold Yes Yes
&m Strikethrough Yes No
&n Underline Yes No
&o Italic Yes Yes
&r Reset to default Yes Yes

On Bedrock, §m and §n are reused as material colour codes (Redstone and Copper), so strikethrough and underline aren't available at all on Bedrock.

Always reset formatting with &r at the end of a coloured string if more plain text follows, otherwise the colour or formatting carries over.

Using Minecraft Color Codes

  • In server.properties set your MOTD using Minecraft MOTD colour codes directly, for example: §6Welcome to §lMy Server§r §3- §aSurvival & Creative. Edit this through the Settings tab, then restart your server.
  • Vanilla servers don't convert & codes in chat on their own. Minecraft server plugins like EssentialsX Chat or a permissions-based chat formatter translate & into the proper Minecraft chat colour code when a player has permission to use it.
  • As of recent Minecraft versions, players can use Minecraft sign colour codes, text colour codes, and book colour codes directly on signs and in written books, as long as chat colouring is allowed on the server.
  • When using Minecraft server commands like /tellraw or /title, use the JSON "color" field instead of & codes. For example:
/tellraw @a {"text":"Welcome to the server!","color":"gold","bold":true}

Running a Minecraft tellraw command with a gold, bold color field, showing "Welcome to the server!" in the chat output

On Java Edition, applying a colour code resets any formatting (bold, italic, and so on) that came before it in the same string. Put colour codes first, then formatting codes, in the order you want them to apply: &c&lRed and bold, not &l&cRed and bold. Bedrock doesn't reset formatting this way, so the order matters less there.

Minecraft Hex Color Codes in JSON Text

Since Minecraft Java 1.16, the "color" field in JSON text components (used in /tellraw, /title, and books written via commands) also accepts full 24-bit hex color codes and RGB values, not just the 16 named colors:

/tellraw @a {"text":"Custom color","color":"#ff8800"}

Minecraft hex color codes example: a tellraw command with color #ff8800 rendering custom orange text in chat

This isn't available through & or § codes, only through the JSON "color" field, and it isn't supported on Bedrock, which is limited to the standard and material colour codes.

Tips

  • Chain multiple colours in one message. The JSON "extra" array lets you build a rainbow-style message with a different colour per word or letter, for example
/tellraw @a ["",{"text":"R","color":"red"},{"text":"a","color":"gold"},{"text":"i","color":"yellow"},{"text":"n","color":"green"},{"text":"b","color":"aqua"},{"text":"o","color":"blue"},{"text":"w","color":"light_purple"}]
  • Test MOTD colour codes before saving. A stray & or § without a valid character afterwards just prints as plain text, so check the console preview after editing server.properties.
  • Keep a colour code reference handy if your team edits signs or the MOTD often, since the character-to-colour mapping isn't obvious from the code alone.

You can now add Minecraft color codes and formatting to your MOTD, chat, signs, books, and command output, correctly for both Java and Bedrock Edition.

Continue Learning

Browse all Minecraft tutorials Explore our library of guides and tutorials
Get 10% off your first month Looking for a Minecraft server? Use code HELPCENTER at checkout.
Get Server
Got Questions?

Frequently Asked Questions

Everything you need to know about our game server hosting. Can't find what you're looking for? Contact our support team.

How do I set up my game server?

Setting up your game server is simple and fast. After choosing your plan, follow our user-friendly setup guide, and your server will be up and running in minutes. We offer one-click modpack installation, automatic backups, and 24/7 support to ensure a smooth setup experience.

What kind of support do you offer?

We provide 24/7 expert support through live chat, ticket system, and knowledge base. Our knowledgeable team responds within 5 minutes on average and has 10+ years of experience managing game servers. We offer setup assistance, troubleshooting, and ongoing maintenance support.

What hardware do you use for hosting?

We offer two hardware tiers across our global datacenters. Our budget tier features AMD EPYC 7551 processors, while our performance tier uses the latest AMD Ryzen 9 7950X and 7950X3D processors. All servers feature NVMe SSD storage, DDR5 RAM, and dedicated CPU cores. Our infrastructure provides 99.9% uptime with full DDoS protection and automatic failover systems.

Can I add mods and plugins to my server?

Yes! We offer support for all popular server types including Forge, Fabric, and Paper for Minecraft, as well as mods for Rust, Valheim, and other games. You can install mods, modpacks, or plugins directly from our control panel. If you have any issues, our support team can help with installation and configuration.

Can I upgrade my server plan later?

Yes, you can upgrade or downgrade your server plan at any time with zero downtime. Our flexible scaling allows you to adjust RAM and CPU as your needs grow. Upgrades take effect immediately, and we prorate any billing changes to ensure you only pay for what you use.

What is your refund policy?

We offer a 7-day money-back guarantee on all hosting plans. If you're not completely satisfied with our service, you can request a full refund within the first week, no questions asked. We also offer prorated refunds for early cancellations after the initial period.

Do you offer DDoS protection?

Yes, all our servers include enterprise-grade DDoS protection at no extra cost. Our network can handle attacks up to 1Tbps and automatically filters malicious traffic. We use multiple layers of protection including rate limiting, traffic analysis, and real-time threat detection to keep your server running smoothly.

How fast is server setup?

Our servers are set up in under 10 minutes on average. We use automated provisioning systems and pre-configured templates to ensure instant deployment. Once your payment is confirmed, your server is automatically created, configured, and ready to play. No waiting, no manual setup required.

What locations do you offer?

We have datacenters in North America (Texas, Virginia, Canada), Europe (London, Germany, France, Finland), and more locations coming soon. All locations feature low-latency connections, high-speed internet, and redundant power systems. You can choose the location closest to your players for the best performance.

Do you offer automatic backups?

Yes, we provide automatic daily backups with 7-day retention at no extra cost. Backups are stored in separate datacenters for security and can be restored with one click. We also offer manual backup creation and custom backup schedules for all plans.

Support Team

Looking for a server?

Or talk with

Our Team