The YouTube logo, with its iconic red, black, and white color scheme, is instantly recognizable worldwide. But have you ever wondered how to replicate this logo's colors in your own designs? Or perhaps you're a web developer looking to incorporate these colors into your CSS. Either way, you've come to the right place. In this guide, we'll delve into the YouTube logo color code in CSS, exploring the RGB, HEX, and HSL values that make up this famous logo.

Before we dive into the specifics, let's first understand the importance of color in branding. Colors can evoke emotions, convey messages, and even influence purchasing decisions. For YouTube, the red, black, and white color scheme is no accident. It's designed to be bold, attention-grabbing, and versatile, reflecting the platform's dynamic and diverse content.

YouTube Logo Color Code: The Basics
The YouTube logo consists of three primary colors: red, black, and white. Each of these colors plays a unique role in the logo's design and overall brand identity.

In the next sections, we'll break down each color, providing you with the RGB, HEX, and HSL values you need to replicate these colors in your CSS projects.
YouTube Red

The red in the YouTube logo is a vibrant, attention-grabbing shade often associated with energy, passion, and excitement. Here are the color codes you need:
- RGB: (204, 0, 0)
- HEX: #CC0000
- HSL: (0, 100%, 50%)
To use this color in your CSS, you might write:

color: #CC0000;
YouTube Black
The black in the YouTube logo provides contrast and balance to the bold red. It's a standard, deep black with the following color codes:
- RGB: (0, 0, 0)
- HEX: #000000
- HSL: (0, 0%, 0%)

In CSS, you might use it like this:
background-color: #000000;
YouTube White




















The white in the YouTube logo is a standard, bright white that helps the logo stand out against various backgrounds. Here are the color codes:
- RGB: (255, 255, 255)
- HEX: #FFFFFF
- HSL: (0, 0%, 100%)
To use this color in your CSS, you might write:
color: #FFFFFF;
Using YouTube Colors in Your Designs
Now that you have the color codes, you might be wondering how to best use them in your designs. Here are some tips:
1. **Balance**: Remember to balance the bold red with the black and white to avoid overwhelming the design.
2. **Contrast**: Use the black and white to create contrast and make the red stand out.
3. **Versatility**: The YouTube color scheme is versatile. Don't be afraid to experiment with different shades and tints to create unique designs.
Creating Gradients
Gradients can add depth and dimension to your designs. Here's how you might create a YouTube-inspired gradient in CSS:
background: linear-gradient(to right, #CC0000, #FFFFFF);
Using YouTube Colors in Dark and Light Modes
To ensure your designs are accessible and appealing to all users, consider using YouTube's colors in both dark and light modes. Here's how you might do that:
body.dark-mode {
background-color: #000000;
color: #FFFFFF;
}
body.light-mode {
background-color: #FFFFFF;
color: #000000;
}
Finally, always remember that while the YouTube logo is iconic, your goal is to create unique, engaging designs that reflect your own brand or project. So, while it's great to draw inspiration from the YouTube logo, don't be afraid to put your own spin on things.