Home › Minecraft RGB Gradient Text Generator

Minecraft RGB Gradient Text Generator

Create smooth hex color gradients for chat messages, nicknames, scoreboards and MOTDs. Pick a blend mode, preview it in four places and copy the code in the format your server uses. Looking for a gradient made of blocks? Use the block gradient generator.

Blend:
Presets:
My presets:
Preview:
<Steve>

Previews are simple mockups; the real game font and spacing differ slightly.

Your code

Decode existing gradient text

How to use gradient text in Minecraft

  1. Type your text and pick two to five colors, or start from a preset. Use Reverse to flip the direction.
  2. Choose a blend mode. OkLab is a good default for two very different colors.
  3. Choose the output format your server or plugin supports (see the table below).
  4. Check the preview, copy the code and paste it into chat, a nickname command, a plugin config or a command block.

Your colors and blend mode are saved in the page address, so you can bookmark a gradient or send the link to a friend. Saved presets stay in your browser on this device.

Which format works where

Minecraft itself only reads hex colors inside text components (the JSON or SNBT text used by commands). Everything else on this list is a shorthand that a plugin converts for you, so the right choice depends on your server software.

FormatExampleUse it for
&#RRGGBB&#ff5f6dH&#ffc371iEssentialsX nicknames and chat, many chat and MOTD plugins
&x format&x&f&f&5&f&6&dHPlugins that use the Spigot/Bungee hex format
§x format§x§f§f§5§f§6§dHThe same format with the section sign, for configs that skip the & conversion
<#RRGGBB><#ff5f6d>H<#ffc371>iPlugins that list this tag style, such as DecentHolograms. It is also valid MiniMessage.
{#RRGGBB}{#ff5f6d}H{#ffc371}iPlugins that list the curly bracket style, such as DecentHolograms
MiniMessage<gradient:#ff5f6d:#ffc371>Hi</gradient>Paper and plugins built on the Adventure library. The shortest option.
/tellraw/tellraw @a [{"text":"H","color":"#ff5f6d"}]Vanilla servers, single player, command blocks and data packs
Custom[COLOR=#ff5f6d]H[/COLOR]Anything else: write your own template with placeholders

Hex colors need Java Edition 1.16 or newer. Bedrock Edition only supports the classic color codes, so gradients will not display there. See all of them on the Minecraft color codes page.

Blend modes: Linear RGB, OkLab and HSL

A gradient only stores the colors you pick. Every letter in between gets a color that is calculated from the two nearest stops, and the blend mode decides how.

  • Linear RGB mixes the red, green and blue numbers directly. It matches what MiniMessage's <gradient> tag does, but opposite colors such as red and cyan pass through a dull gray in the middle.
  • OkLab blends in a perceptual color space, so brightness changes evenly and the middle of the gradient stays clean. It usually looks best for two very different colors.
  • HSL moves around the color wheel by the shortest way. Red to blue passes through magenta, and yellow to blue passes through green, which gives a rainbow-like look.

With MiniMessage selected, OkLab and HSL are written as one <#RRGGBB> tag per letter, because the gradient tag can only blend in RGB.

Custom templates

If your plugin uses a format that is not listed, choose Custom template. The template is repeated for every letter (spaces stay plain to save characters). For example, &#$r$g$b$f$c rebuilds the standard &#RRGGBB format, <color:#$r$g$b>$c gives MiniMessage color tags, and &x&$1&$2&$3&$4&$5&$6$f$c rebuilds the &x format. Change the $f prefix to § if your config needs section signs for bold and italic.

Decoding gradient text

Found a gradient you like in a config file or on another site? Open Decode existing gradient text under the tool and paste it in. The decoder strips the codes to get the plain text, reads the color of every letter and then looks for the smallest number of evenly spaced stops, in any of the three blend modes, that recreates those colors. Bold, italic, underline and strikethrough are picked up too. If the text was not made as one smooth gradient, you get the closest approximation with up to five colors.

Tips for good-looking gradients

  • Two colors that are close on the color wheel (orange to pink, cyan to blue) look smooth in any mode. For opposites, switch to OkLab.
  • Short text such as a rank or nickname looks best with 2 colors; longer messages and MOTDs can use 3 or more.
  • Bold text makes gradients easier to read, especially with light colors on a bright background.
  • Watch the character count: each colored letter adds 8 to 14 characters of code, and a chat message can hold 256.
  • Commands typed in chat have the same 256 character limit, so long /tellraw commands belong in a command block or a data pack function.
  • Check the scoreboard and server list previews. Dark colors that look fine in chat can disappear on a dark sidebar.

Frequently asked questions

Which format should I use?

Check what your plugin's documentation shows. EssentialsX nicknames and many chat plugins accept &#RRGGBB. Plugins that use the Spigot/Bungee hex format want &x&R&R&G&G&B&B. Paper and plugins built on Adventure use MiniMessage. Some plugins, such as DecentHolograms, also accept <#RRGGBB> and {#RRGGBB}. On a vanilla server or in single player, use the /tellraw command.

Do hex colors work in vanilla Minecraft chat?

Not in normal chat messages. Vanilla Java Edition supports hex colors in text components, such as /tellraw, /title and items or signs edited with commands. Typing &# codes into chat only works when a plugin converts them.

Which Minecraft version supports hex colors?

Hex (RGB) colors were added to Java Edition text in 1.16. Older versions and Bedrock Edition only support the classic color codes, so gradients do not display on Bedrock.

What is the difference between Linear RGB, OkLab and HSL?

They are different ways to fill in the colors between your stops. Linear RGB mixes the red, green and blue values directly and can look muddy or gray in the middle. OkLab is a perceptual color space, so the brightness changes evenly and the middle stays vivid. HSL travels around the color wheel, which gives rainbow-like transitions.

Why is my gradient text so long?

Every letter needs its own color code, so gradient text is much longer than the visible text. Minecraft chat messages are limited to 256 characters. MiniMessage's <gradient> tag is the shortest option if your server supports it.

Can I edit gradient text I made before?

Yes. Paste it into the decoder under the tool. It reads &#RRGGBB, &x, §x, <#RRGGBB>, {#RRGGBB}, MiniMessage and /tellraw text, finds the colors and the blend mode, and loads the text back into the editor.

How do I put a gradient in my server MOTD?

For hex colors in the server list you need a plugin or proxy that supports custom MOTDs; the plain server.properties MOTD is meant for the classic § codes. Generate the text here, pick the format listed in that plugin's documentation and paste it into its config. Use the server list preview to check how it fits.