Preparing your generator page
We are loading content and tools so everything is ready to use.
We are loading content and tools so everything is ready to use.
Type anything and watch it turn into rainbow text, then copy it in the format your platform actually understands: colored text for Discord, color codes for Minecraft, BBCode for forums, HTML or a CSS gradient for websites, or emoji for Instagram and TikTok bios.
More ways to style text: the Fancy Text Generator, the Minecraft Color Code Generator and all Text tools.
Last updated: October 5, 2026 · Published: 2026-04-09 · Updated: 2026-10-05
18/500 characters. Spaces keep their place and don't use up a color.
Preview
Newton's seven rainbow colors as pure web hues.
Copy your rainbow text in 10 formats
❤️R🧡a💛i💚n💙b💜o❤️w 🧡v💛i💚b💙e💜s ❤️o🧡n💛l💚yAnywhere: Instagram, TikTok, X and Discord bios, WhatsApp, usernamesPlain-text fields can't hold colored letters, so the color comes from emoji.
❤️🧡💛💚💙💜 Rainbow vibes only 💜💙💚💛🧡❤️Bios, captions and display names
```ansi ␛[31mR␛[33ma␛[32mi␛[36mn␛[34mb␛[35mo␛[31mw ␛[33mv␛[32mi␛[36mb␛[34me␛[35ms ␛[31mo␛[33mn␛[32ml␛[36my␛[0m ```Discord messages on desktop and web (ANSI code block)Uses Discord's six usable colors; there is no orange. The Discord phone apps may show it without color.
&cR&6a&ei&an&bb&9o&dw &cv&6i&eb&ae&bs &9o&dn&cl&6yJava server chat with plugins such as EssentialsXUses Minecraft's built-in colors, so the palette choice doesn't apply.
§cR§6a§ei§an§bb§9o§dw §cv§6i§eb§ae§bs §9o§dn§cl§6yServer MOTDs, Bedrock chat, signs and item namesUses Minecraft's built-in colors, so the palette choice doesn't apply.
/tellraw @a {"text":"","extra":[{"text":"R","color":"#FF0000"},{"text":"a","color":"#FF7F00"},{"text":"i","color":"#FFFF00"},{"text":"n","color":"#00FF00"},{"text":"b","color":"#0000FF"},{"text":"o","color":"#4B0082"},{"text":"w","color":"#9400D3"}," ",{"text":"v","color":"#FF0000"},{"text":"i","color":"#FF7F00"},{"text":"b","color":"#FFFF00"},{"text":"e","color":"#00FF00"},{"text":"s","color":"#0000FF"}," ",{"text":"o","color":"#4B0082"},{"text":"n","color":"#9400D3"},{"text":"l","color":"#FF0000"},{"text":"y","color":"#FF7F00"}]}Java Edition 1.16+ commands and command blocksAt 537 characters this is too long for the chat box (256). Paste it into a command block, or color each word.<#ff0000>R<#ff7f00>a<#ffff00>i<#00ff00>n<#0000ff>b<#4b0082>o<#9400d3>w <#ff0000>v<#ff7f00>i<#ffff00>b<#00ff00>e<#0000ff>s <#4b0082>o<#9400d3>n<#ff0000>l<#ff7f00>yPaper and Velocity servers and plugins that read MiniMessage
[color=#FF0000]R[/color][color=#FF7F00]a[/color][color=#FFFF00]i[/color][color=#00FF00]n[/color][color=#0000FF]b[/color][color=#4B0082]o[/color][color=#9400D3]w[/color] [color=#FF0000]v[/color][color=#FF7F00]i[/color][color=#FFFF00]b[/color][color=#00FF00]e[/color][color=#0000FF]s[/color] [color=#4B0082]o[/color][color=#9400D3]n[/color][color=#FF0000]l[/color][color=#FF7F00]y[/color]Forums such as phpBB, XenForo and MyBB
<span style="color:#FF0000">R</span><span style="color:#FF7F00">a</span><span style="color:#FFFF00">i</span><span style="color:#00FF00">n</span><span style="color:#0000FF">b</span><span style="color:#4B0082">o</span><span style="color:#9400D3">w</span> <span style="color:#FF0000">v</span><span style="color:#FF7F00">i</span><span style="color:#FFFF00">b</span><span style="color:#00FF00">e</span><span style="color:#0000FF">s</span> <span style="color:#4B0082">o</span><span style="color:#9400D3">n</span><span style="color:#FF0000">l</span><span style="color:#FF7F00">y</span>Websites, blogs, email signatures and anywhere HTML is allowed
<span style="background:linear-gradient(90deg,#FF0000,#FF7F00,#FFFF00,#00FF00,#0000FF,#4B0082,#9400D3);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent">Rainbow vibes only</span>Websites: one smooth gradient in a single tagAlways a smooth gradient across the whole text.
The ␛ symbol stands for an invisible escape character. Use Copy rather than retyping the Discord block, or the colors won't work.
Rainbow text is text in which each letter or word is a different color of the rainbow, usually running red, orange, yellow, green, blue and violet. It’s popular for usernames, server announcements, forum signatures, Pride posts and anything that should stand out.
Text itself has no color, so how you make it depends on where it goes. Discord reads color codes in special code blocks, Minecraft uses § and & codes, forums use BBCode and websites use HTML. Bios and captions only hold plain text, so there the rainbow has to come from colored emoji.
Type your text
Enter a name, bio line or message. The preview colors it as you type, on a dark or light background.
Choose colors and a pattern
Pick one of 5 palettes, color each letter or each word, and repeat the colors or stretch them into one smooth gradient.
Copy the format for your platform
Copy the Discord block, Minecraft codes, BBCode, HTML, CSS or emoji version, or all 10 at once.
Which format to copy for each app and game.
| Where | Format to copy | Good to know |
|---|---|---|
| Discord messages (desktop and web) | Discord colored text | Paste the whole block, including the ```ansi lines. |
| Discord on phones, bios and nicknames | Emoji rainbow | Plain text only. Name colors come from server roles. |
| Instagram, TikTok, X and Threads bios | Emoji rainbow or frame | Plain text only, so color has to come from emoji. |
| WhatsApp, iMessage, Telegram, Snapchat | Emoji rainbow | Messages don't support colored letters. |
| Minecraft Java server chat | Minecraft & codes | Needs a chat plugin such as EssentialsX and color permission. |
| Minecraft server MOTD | Minecraft § codes | In server.properties, write § as \u00A7. |
| Minecraft Bedrock | Minecraft § codes | Works in chat, on signs and in item names. |
| Minecraft Java commands | Minecraft /tellraw (hex) | Java 1.16+ with cheats. Over 256 characters, use a command block. |
| Paper and Velocity servers | MiniMessage (hex) | For plugins, MOTD and chat formats that read MiniMessage. |
| Forums | BBCode | phpBB, XenForo, MyBB and vBulletin support [color]. |
| Websites, blogs and email | HTML or CSS gradient text | Use HTML for email; gradient text needs a modern browser. |
The generator's actual output for Rainbow with the classic palette, one color per letter. ␛ marks the invisible escape character Discord needs.
| Format | Output |
|---|---|
| Emoji rainbow | ❤️R🧡a💛i💚n💙b💜o❤️w |
| Emoji frame | ❤️🧡💛💚💙💜 Rainbow 💜💙💚💛🧡❤️ |
| Discord colored text | ```ansi ␛[31mR␛[33ma␛[32mi␛[36mn␛[34mb␛[35mo␛[31mw␛[0m ``` |
| Minecraft & codes | &cR&6a&ei&an&bb&9o&dw |
| Minecraft § codes | §cR§6a§ei§an§bb§9o§dw |
| Minecraft /tellraw (hex) | /tellraw @a {"text":"","extra":[{"text":"R","color":"#FF0000"},{"text":"a","color":"#FF7F00"},{"text":"i","color":"#FFFF00"},{"text":"n","color":"#00FF00"},{"text":"b","color":"#0000FF"},{"text":"o","color":"#4B0082"},{"text":"w","color":"#9400D3"}]} |
| MiniMessage (hex) | <#ff0000>R<#ff7f00>a<#ffff00>i<#00ff00>n<#0000ff>b<#4b0082>o<#9400d3>w |
| BBCode | [color=#FF0000]R[/color][color=#FF7F00]a[/color][color=#FFFF00]i[/color][color=#00FF00]n[/color][color=#0000FF]b[/color][color=#4B0082]o[/color][color=#9400D3]w[/color] |
| HTML | <span style="color:#FF0000">R</span><span style="color:#FF7F00">a</span><span style="color:#FFFF00">i</span><span style="color:#00FF00">n</span><span style="color:#0000FF">b</span><span style="color:#4B0082">o</span><span style="color:#9400D3">w</span> |
| CSS gradient text | <span style="background:linear-gradient(90deg,#FF0000,#FF7F00,#FFFF00,#00FF00,#0000FF,#4B0082,#9400D3);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent">Rainbow</span> |
The exact colors behind each palette. Pastel and neon look best on dark backgrounds; use Readable on white for light pages.
| Palette | Preview | Hex codes |
|---|---|---|
| Classic ROYGBIVNewton's seven rainbow colors as pure web hues. | Rainbow | #FF0000#FF7F00#FFFF00#00FF00#0000FF#4B0082#9400D3 |
| Pride flagThe six stripes of the 1979 rainbow flag, in the most common digital shades. | Rainbow | #E40303#FF8C00#FFED00#008026#004DFF#750787 |
| Readable on whiteDarker shades that stay legible on white pages and light mode. | Rainbow | #DC2626#EA580C#CA8A04#16A34A#2563EB#7C3AED |
| PastelSoft candy colors for dark backgrounds and aesthetic posts. | Rainbow | #FFB3BA#FFDFBA#FFFFBA#BAFFC9#BAE1FF#D7BAFF |
| NeonGlowing high-saturation colors for dark mode and gaming. | Rainbow | #FF073A#FF9F1C#FFF01F#39FF14#00E5FF#BC13FE |
Discord and Minecraft codes only offer a fixed set of colors, so this is the closest match for each rainbow color. They are the codes the generator uses.
| Color | Hex | Minecraft | Discord ANSI | Emoji |
|---|---|---|---|---|
| Red | #FF0000 | &c / §c (red) | 31 (red) | ❤️ 🟥 🔴 |
| Orange | #FF7F00 | &6 / §6 (gold) | None; 33 is closest | 🧡 🟧 🟠 |
| Yellow | #FFFF00 | &e / §e (yellow) | 33 (yellow) | 💛 🟨 🟡 |
| Green | #00FF00 | &a / §a (green) | 32 (green) | 💚 🟩 🟢 |
| Cyan | #00FFFF | &b / §b (aqua) | 36 (cyan) | 🩵 (Emoji 15.0) |
| Blue | #0000FF | &9 / §9 (blue) | 34 (blue) | 💙 🟦 🔵 |
| Purple | #9400D3 | &d / §d (light purple) | 35 (pink) | 💜 🟪 🟣 |
Discord’s text colors are 30 gray, 31 red, 32 green, 33 yellow, 34 blue, 35 pink, 36 cyan and 37 white. Minecraft has 16 legacy colors from §0 black to §f white; Java Edition 1.16 added any hex color through JSON text, which the /tellraw format uses.
A rainbow is sunlight split by raindrops. Each drop bends, reflects and bends the light again, and because every wavelength bends by a slightly different amount, white light fans out into colors. These are the approximate wavelength ranges for each color.
| Color | Wavelength |
|---|---|
| Red | about 625 to 750 nm |
| Orange | about 590 to 625 nm |
| Yellow | about 565 to 590 nm |
| Green | about 500 to 565 nm |
| Cyan | about 485 to 500 nm |
| Blue | about 450 to 485 nm |
| Violet | about 380 to 450 nm |
The familiar seven colors, ROYGBIV, come from Isaac Newton. In his lectures of 1670 to 1672 he named five colors, and in Opticks (1704) he split the spectrum into seven “after the manner of a musical chord”, adding orange and indigo to match the seven notes of a scale. The spectrum has no real borders, which is why modern tables often list cyan and drop indigo.
The rainbow pride flag, designed by Gilbert Baker for San Francisco’s Gay Freedom Day on June 25, 1978, had eight stripes, including hot pink and turquoise. By 1979 both were gone, leaving the six stripes most flags use today: red, orange, yellow, green, blue and violet.
The emoji rainbow and frame use these characters. Older phones may not show the newest ones.
| Emoji | Name | Added |
|---|---|---|
| 🌈 | Rainbow | Unicode 6.0, 2010 |
| ❤️ | Red heart (a dingbat long before emoji) | Unicode 1.1, 1993 |
| 💛 💚 💙 💜 | Yellow, green, blue and purple hearts | Unicode 6.0, 2010 |
| 🔴 🔵 | Red and blue circles | Unicode 6.0, 2010 |
| 🏳️🌈 | Rainbow flag (white flag + zero width joiner + rainbow) | Emoji 4.0, 2016 |
| 🧡 | Orange heart | Unicode 10.0, 2017 |
| 🟥 🟧 🟨 🟩 🟦 🟪 🟠 🟡 🟢 🟣 | Colored squares and circles | Unicode 12.0, 2019 |
| 🩵 | Light blue heart | Emoji 15.0, 2022 |
Rainbow text on Discord, Minecraft, bios, forums and websites, rainbow colors in order, and the pride flag.
Explore more tools in the directory.
Every Minecraft color and formatting code, with a preview.
Build linear and radial gradients for backgrounds and text.
Make your own set of colors to use in rainbow text.
Find the name of any hex color in your palette.
Unicode fonts that work in bios where color can't.
Spell words in emoji or decorate them with emoji.