#BA128D Color Information

Hex color code: #BA128D

A dynamic magenta shade, #BA128D appears as (186, 18, 141) in RGB and (316°, 82%, 40%) in HSL. It is typically applied in digital products.

Try:
Color NameMedium Violet Red
HEX
#BA128D
RGB
186, 18, 141
HSL
316°, 82%, 40%
CMYK
0%, 90%, 24%, 27%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #BA128D; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

186, 18, 141

Red: 186 / Green: 18 / Blue: 141

HSL

316°, 82%, 40%

Hue: 316° / Saturation: 82% / Lightness: 40%

CMYK

0%, 90%, 24%, 27%

Cyan: 0% / Magenta: 90% / Yellow: 24% / Key: 27%

What color is #BA128D?

#BA128D is a highly saturated hue associated with energy and excitement.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #BA128D to RGB:

rgb(186, 18, 141)HEX to RGB Converter →

HEX to HSL

Convert #BA128D to HSL:

hsl(316, 82%, 40%)RGB to HSL Converter →

HEX to CMYK

Convert #BA128D to CMYK:

cmyk(0%, 90%, 24%, 27%)Color Converter →

Color Meaning and Usage

A dynamic magenta tone, #BA128D has RGB (186, 18, 141) and HSL (316°, 82%, 40%). Known for evoking energy and excitement, this highly saturated hue is a solid option for clean and minimal interfaces. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #BA128D is #12BA3F, creating high-contrast pairings. For softer combinations, try analogous colors like #9312BA.

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

Contrast with #BA128D

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #BA128D?

#BA128D is a dynamic magenta color - a highly saturated hue that evokes energy and excitement.

What is the RGB value of #BA128D?

#BA128D in RGB is (186, 18, 141) - 186 red, 18 green, and 141 blue.

How to use #BA128D in CSS?

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

What colors go well with #BA128D?

#12BA3F (complementary), #9312BA (analogous), and #740B58 (lighter shade) work well with #BA128D.