#BA45BA Color Information

Hex color code: #BA45BA

The hex color #BA45BA is a pastel magenta with RGB values of (186, 69, 186) and HSL of (300°, 46%, 50%). It is commonly used in modern UI design.

Try:
Color NameMedium Orchid
HEX
#BA45BA
RGB
186, 69, 186
HSL
300°, 46%, 50%
CMYK
0%, 63%, 0%, 27%

Shades

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

Generate Gradient

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

Preview in UI

Button

.btn-primary { background-color: #BA45BA; color: #000000; }

Badge

New Feature
.badge { background-color: #BA45BA; color: #000000; }

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 #BA45BA; background-color: #BA45BA15; }

Alert / Toast

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

Link / Accent

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

a { color: #BA45BA; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

186, 69, 186

Red: 186 / Green: 69 / Blue: 186

HSL

300°, 46%, 50%

Hue: 300° / Saturation: 46% / Lightness: 50%

CMYK

0%, 63%, 0%, 27%

Cyan: 0% / Magenta: 63% / Yellow: 0% / Key: 27%

What color is #BA45BA?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #BA45BA to RGB:

rgb(186, 69, 186)HEX to RGB Converter →

HEX to HSL

Convert #BA45BA to HSL:

hsl(300, 46%, 50%)RGB to HSL Converter →

HEX to CMYK

Convert #BA45BA to CMYK:

cmyk(0%, 63%, 0%, 27%)Color Converter →

Color Meaning and Usage

#BA45BA is a soft magenta color with RGB values of 186, 69, 186 and HSL of 300°, 46%, 50%. This magenta-red hue evokes romance and playfulness, making it suitable for a common choice for dashboards and SaaS products. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #BA45BA is #45BA45, creating high-contrast pairings. For softer combinations, try analogous colors like #8045BA.

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

Contrast with #BA45BA

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

Contrast Ratio: 4.65:1
WCAG AA: Pass
WCAG AAA: Fail

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #BA45BA?

#BA45BA is a soft magenta color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #BA45BA?

#BA45BA in RGB is (186, 69, 186) - 186 red, 69 green, and 186 blue.

How to use #BA45BA in CSS?

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

What colors go well with #BA45BA?

#45BA45 (complementary), #8045BA (analogous), and #823082 (lighter shade) work well with #BA45BA.