how to get color name on discord

How to Determine a Color's Name on Discord

By Daniel Walker
AD

Are you tired of seeing hex codes instead of color names in Discord? While Discord doesn't natively support displaying color names, there's a workaround using custom CSS. Let's delve into how you can get color names instead of codes in Discord.

Before we begin, note that this method requires a basic understanding of CSS. Also, changes are server-specific, meaning you'll need to apply this to every server you're in. Now, let's dive into the process.

Understanding Discord's color format

Discord uses the RGB color format, which consists of three values: red, green, and blue. Each value is represented by a number between 0 and 255. For instance, the color code #FF0000 is represented as RGB(255, 0, 0) in Discord's custom CSS.

AD
How To Make DISCORD COLOR TEXT and Text Formats (Bold Italics Underline) 2021
How To Make DISCORD COLOR TEXT and Text Formats (Bold Italics Underline) 2021
How to Change Discord Text Color Easily
How to Change Discord Text Color Easily
You get to name colors.
You get to name colors.

Now that we understand the basics let's move on to transforming color codes into names.

Finding color names

To get color names, you can use online converters like "RGB to Color Name" (https://www.rapidtables.com/convert/color/rgb-to-color-name.html). Just input the RGB values, and the converter returns the corresponding color name.

How To Color Text In Discord (Working Color Codes Guide)
How To Color Text In Discord (Working Color Codes Guide)
an old - school computer game with the names of different colors and numbers on it
an old - school computer game with the names of different colors and numbers on it
How to Change Discord Color Themes and Customize Appearance Settings
How to Change Discord Color Themes and Customize Appearance Settings

For example, entering RGB(255, 0, 0) gives us 'Red'. Keep this in mind as we'll use this while creating our custom CSS.

Creating custom CSS

Now that we have our color names, let's create a custom CSS to replace the color codes with names. We'll use the :before selector to add text before each color code.

AD

Here's an example of how your custom CSS might look:

Discord Colour roles
Discord Colour roles
an image of some type of text on a black background with different colors and shapes
an image of some type of text on a black background with different colors and shapes
Discord Name Fonts — Copy & Paste Fancy Text
Discord Name Fonts — Copy & Paste Fancy Text
someone has posted their name on the back of a white background with lots of small letters
someone has posted their name on the back of a white background with lots of small letters
🎀 cute discord intro maker
🎀 cute discord intro maker
How to Change Your Discord Name
How to Change Your Discord Name
 mezi {
    color: states/countryCN/name;
    :before {
        content: "Red";
        position: relative;
        bottom: 0.15em;
        margin-right: 0.1em;
    }
}

In this example, the custom CSS will replace RGB(255, 0, 0) with 'Red'. You can create similar rules for other colors and their respective names.

Applying custom CSS to Discord

Now that you've created your custom CSS, it's time to apply it to Discord. Here's how you can do it:

AD

Using the Developer Tools

1. Right-click anywhere on a Discord channel and select 'Inspect' to open the developer tools.

an image of a computer screen with the words colors 5, 6 and 8 on it
an image of a computer screen with the words colors 5, 6 and 8 on it

2. Go to the 'Styles' tab, and paste your custom CSS at the end of the existing CSS.

3. Refresh the page, and you should now see color names instead of color codes.

AD

Using Discord's built-in CSS editor

1. Click on your server settings and select 'Appearance'.

2. Scroll down to the 'Custom CSS' section and paste your custom CSS.

3. Click 'Done' and refresh the page. You should now see color names across your server.

That's it! You've successfully replaced color codes with names in Discord.

AD