#BA22D8 Color Information

Hex color code: #BA22D8

#BA22D8 is a striking magenta color. In RGB it is (186, 34, 216), and in HSL it is (290°, 73%, 49%). It is often used for branding and logos.

Try:
Color NameDark Orchid
HEX
#BA22D8
RGB
186, 34, 216
HSL
290°, 73%, 49%
CMYK
14%, 84%, 0%, 15%

Shades

CSS Usage
color: #BA22D8;
background-color: #BA22D8;
border-color: #BA22D8;
box-shadow: 0 0 10px #BA22D8;
border: 2px solid #BA22D8;
Tailwind Usage
bg-[#BA22D8]
text-[#BA22D8]
border-[#BA22D8]
shadow-[0_0_10px_BA22D8]

Generate Gradient

Gradient CSS
background: linear-gradient(90deg, #BA22D8, #FF5733);

Preview in UI

Button

.btn-primary { background-color: #BA22D8; color: #FFFFFF; }

Badge

New Feature
.badge { background-color: #BA22D8; color: #FFFFFF; }

Text Highlight

The quick brown fox jumps over the lazy dog. highlighted text example shows how the color looks as a text highlight.

Card

Card Title

This card uses your color as a border accent.

.card-accent { border: 2px solid #BA22D8; background-color: #BA22D815; }

Alert / Toast

This is an alert using your color as accent.
.alert { background-color: #BA22D820; border-left: 4px solid #BA22D8; }

Link / Accent

This is a paragraph with a link using your color. The color can be applied to interactive elements.

a { color: #BA22D8; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #BA22D8 in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

186, 34, 216

Red: 186 / Green: 34 / Blue: 216

HSL

290°, 73%, 49%

Hue: 290° / Saturation: 73% / Lightness: 49%

CMYK

14%, 84%, 0%, 15%

Cyan: 14% / Magenta: 84% / Yellow: 0% / Key: 15%

What color is #BA22D8?

#BA22D8 is a magenta-red hue associated with romance and playfulness.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #BA22D8 to RGB:

rgb(186, 34, 216)HEX to RGB Converter →

HEX to HSL

Convert #BA22D8 to HSL:

hsl(290, 73%, 49%)RGB to HSL Converter →

HEX to CMYK

Convert #BA22D8 to CMYK:

cmyk(14%, 84%, 0%, 15%)Color Converter →

Color Meaning and Usage

A striking magenta tone, #BA22D8 has RGB (186, 34, 216) and HSL (290°, 73%, 49%). Known for evoking romance and playfulness, this magenta-red hue is popular in mobile app design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #BA22D8 is #40D822, creating high-contrast pairings. For softer combinations, try analogous colors like #5F22D8.

Use #BA22D8 in CSS: color: #BA22D8 or background-color: #BA22D8. Create palettes with Color Palette Generator or check contrast with Contrast Checker.

Contrast with #BA22D8

Sample text on this color - The quick brown fox jumps over the lazy dog.

Contrast Ratio: 4.31:1
WCAG AA: Fail
WCAG AAA: Fail

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #BA22D8?

#BA22D8 is a striking magenta color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #BA22D8?

#BA22D8 in RGB is (186, 34, 216) - 186 red, 34 green, and 216 blue.

How to use #BA22D8 in CSS?

Use #BA22D8 directly in your CSS properties like color or background-color.

What colors go well with #BA22D8?

#40D822 (complementary), #5F22D8 (analogous), and #811796 (lighter shade) work well with #BA22D8.