How to Determine a Color's Name on Discord
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.
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.
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.
Here's an example of how your custom CSS might look:
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:
Using the Developer Tools
1. Right-click anywhere on a Discord channel and select 'Inspect' to open the developer tools.
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.
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.