Skip to content

Discord colored text generator

Type your message, press the words you want in colour, and copy the block into Discord. Every word can have its own colour.

Press the words to colour
Text colour
Background
How it looks in Discord for desktop
announcements
FabianToday at 3:15 PM
Welcome to the server
Read the rules before you post

Colours show in Discord for desktop and in the browser; the phone apps show plain text. Paste the block as it is: it carries an invisible escape character before each code.

How to make colored text on Discord

Discord colours text inside a code block marked ansi. The colour codes sit before each word and are hidden when the message is sent.

  1. 1

    Pick the words

    Type your message, then press the words you want to colour. Press Select all to colour everything at once.

  2. 2

    Choose the look

    Pick a text colour, a background, bold, or underline, then press Apply. Each word keeps its own look, so one line can use several colours.

  3. 3

    Copy and paste

    Copy the block and paste it into Discord as it is. The three backticks and the word ansi on the first line are what turn the colours on.

Discord ANSI color codes

Each coloured word is written as the escape character, an opening bracket, the codes joined by semicolons, and the letter m. Code 0 ends it. Bold red text is [1;31m, and red on a cream background is [31;47m.

The phone apps show the block as plain text, so keep anything important readable without the colour.

CodeTypeShows as
30TextGrey
31TextRed
32TextGreen
33TextYellow
34TextBlue
35TextPink
36TextCyan
37TextWhite
40BackgroundDark blue
41BackgroundOrange
42BackgroundSlate
43BackgroundGrey teal
44BackgroundGrey
45BackgroundIndigo
46BackgroundLight grey
47BackgroundCream
1StyleBold
4StyleUnderline
0ResetBack to plain text

Colored text in your own bot's messages

With BotGhost, the no-code Discord bot maker, your bot can post coloured rules, server status, or game results. Paste the copied block into a reply in the command builder and the bot sends it in colour.

server-status
Status BotAPPToday at 3:15 PM
Server status
Game server Online
Voice relay Busy
Mod queue 4 waiting

Discord colored text questions

For bold, headings, and lists without colour, use the Discord text formatter.

How do I type in color on Discord?
Discord has no colour button. Put your text in a code block that starts with ```ansi and add colour codes before the words. This generator writes the codes for you: pick words, pick a colour, and copy the block.
Why does my colored text show as plain text?
The phone apps show ansi blocks without colour, so people on iPhone and Android see plain text. Colours show in Discord for desktop and in the browser. Also check the first line says ```ansi with nothing after it.
What colors can Discord text be?
Eight text colours (grey, red, green, yellow, blue, pink, cyan, and white) and eight backgrounds, plus bold and underline. Discord ignores other codes, so there is no custom hex colour for message text.
Can a bot send colored text?
Yes. A bot sends the same ansi code block. In BotGhost, paste the copied block into the message text of a Send or Edit a Message block and the bot sends it in colour.
Can I color my username or role on Discord?
Your name takes the colour of your highest coloured role. Server admins set role colours in Server Settings, Roles. See the Discord color codes page for the hex codes of every preset.
Why do I see strange symbols like [31m in my message?
The block lost its first line or its escape characters. Copy it again from this page and paste it without editing the codes, and make sure the first line is exactly ```ansi.