#BA22DD Color Information

Hex color code: #BA22DD

#BA22DD is a striking magenta color. In RGB it is (186, 34, 221), and in HSL it is (289°, 73%, 50%). It is popular in mobile app design.

Try:
Color NameDark Orchid
HEX
#BA22DD
RGB
186, 34, 221
HSL
289°, 73%, 50%
CMYK
16%, 85%, 0%, 13%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #BA22DD; 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 #BA22DD; background-color: #BA22DD15; }

Alert / Toast

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

Link / Accent

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

a { color: #BA22DD; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

186, 34, 221

Red: 186 / Green: 34 / Blue: 221

HSL

289°, 73%, 50%

Hue: 289° / Saturation: 73% / Lightness: 50%

CMYK

16%, 85%, 0%, 13%

Cyan: 16% / Magenta: 85% / Yellow: 0% / Key: 13%

What color is #BA22DD?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #BA22DD to RGB:

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

HEX to HSL

Convert #BA22DD to HSL:

hsl(289, 73%, 50%)RGB to HSL Converter →

HEX to CMYK

Convert #BA22DD to CMYK:

cmyk(16%, 85%, 0%, 13%)Color Converter →

Color Meaning and Usage

#BA22DD is a striking magenta color with RGB values of 186, 34, 221 and HSL of 289°, 73%, 50%. This magenta-red hue evokes romance and playfulness, making it suitable for popular for illustrations and friendly visual themes. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #BA22DD is #45DD22, creating high-contrast pairings. For softer combinations, try analogous colors like #5D22DD.

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

Contrast with #BA22DD

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #BA22DD?

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

What is the RGB value of #BA22DD?

#BA22DD in RGB is (186, 34, 221) - 186 red, 34 green, and 221 blue.

How to use #BA22DD in CSS?

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

What colors go well with #BA22DD?

#45DD22 (complementary), #5D22DD (analogous), and #83189A (lighter shade) work well with #BA22DD.