Colors and hex codes
Color codes don't color your chat messages: your chat color comes from the Colors tab in /cosmetics. Codes do work in custom chat tags, holograms and your guild MOTD: & codes like &a, hex codes like &#ff5555, and gradients made one letter at a time with rgbmc.com.
Where colors work
| Where | Color codes you can use | Good to know |
|---|---|---|
| Custom chat tags | & codes, &#rrggbb, #rrggbb |
Up to 14 letters. Codes don’t count |
| Holograms | & codes, &#rrggbb, #rrggbb, &u for a rainbow |
Up to 40 letters a line. Codes don’t count |
| Guild MOTD (in the guild menu, Manage > Guild) | & codes, &#rrggbb |
Up to 100 characters, codes included |
| Chat and private messages | None | Codes show as plain text. Pick a chat color instead |
| Anvils | None | Anvil names stay plain text |
Colors in nicknames, on signs, in item names from /rename and in player warp descriptions aren’t open to every player.
Color codes
Put a code in front of the text you want to color. A new color code also ends any bold, italic or other style before it.
| Code | Color | Code | Color |
|---|---|---|---|
&0 |
Black | &8 |
Dark gray |
&1 |
Dark blue | &9 |
Blue |
&2 |
Dark green | &a |
Green |
&3 |
Dark aqua | &b |
Aqua |
&4 |
Dark red | &c |
Red |
&5 |
Purple | &d |
Pink |
&6 |
Gold | &e |
Yellow |
&7 |
Gray | &f |
White |
| Code | Style |
|---|---|
&l |
Bold |
&o |
Italic |
&n |
Underline |
&m |
Strikethrough |
&k |
Scrambled letters |
&r |
Back to normal |
Example: &b&lSKY is bold aqua.
Hex colors
A hex code picks any color, written as # and six digits or letters from 0 to 9 and a to f. #ff5555 is a soft red, #55aaff a light blue.
- In custom tags and holograms, write it as
&#ff5555or just#ff5555. - In the guild MOTD, write it as
&#ff5555. - You can add a style after it:
#ff5555&lHiis bold red.
Gradients
A gradient is one color fading into another. Give every letter its own hex code:
#ff0000S#ff5500u#ffaa00n
That’s tedious by hand, so use rgbmc.com:
- Type your text.
- Pick your colors and any styles.
- Copy the result and paste it into your custom tag or hologram.
Color codes don’t count toward a custom tag’s 14 letters, so a gradient tag still fits as long as the text itself does.
Your chat color
Typing color codes in chat doesn’t work, so your chat color is a cosmetic:
- Type
/chatcolor, or open/cosmeticsand pick the Colors tab. - Click a color you own to use it.
- Click Take off to go back to white.
Chat color vouchers (Aqua, Blue, Gold, Lime, Pink, Purple and Red) sometimes show up in the Black Market. Some unlock more than one color. Hold one, right-click it, then right-click again to redeem it. They don’t work inside the PvP arena.
Bedrock
- Bedrock can’t show exact hex colors, so every hex color shows as the closest color Bedrock has. Gradients lose some of their smooth fade.
- Underline (
&n) and strikethrough (&m) don’t show on Bedrock. - Bedrock players type color codes the same way as Java players.
Quick answers
Why don't color codes work in chat?
Chat doesn't read color codes, so they show as plain text. Pick a chat color in the Colors tab of /cosmetics, or type /chatcolor to open it.
How do I make a gradient?
Give each letter its own hex code. rgbmc.com builds it for you: type your text, pick the colors and copy the result into your custom tag or hologram.
What's the difference between &#ff5555 and
Both are the same hex color. Custom tags and holograms take either one. The guild MOTD only takes &#ff5555.
How do hex colors look on Bedrock?
Bedrock can't show exact hex colors, so each one shows as the closest color Bedrock has. Underline and strikethrough don't show on Bedrock.
Still stuck?
Ask in our Discord. Players and staff are happy to help.