#BA217D Color Information

Hex color code: #BA217D

The hex color #BA217D is a subtle magenta with RGB values of (186, 33, 125) and HSL of (324°, 70%, 43%). It is popular in mobile app design.

Try:
Color NameMedium Violet Red
HEX
#BA217D
RGB
186, 33, 125
HSL
324°, 70%, 43%
CMYK
0%, 82%, 33%, 27%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #BA217D; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

186, 33, 125

Red: 186 / Green: 33 / Blue: 125

HSL

324°, 70%, 43%

Hue: 324° / Saturation: 70% / Lightness: 43%

CMYK

0%, 82%, 33%, 27%

Cyan: 0% / Magenta: 82% / Yellow: 33% / Key: 27%

What color is #BA217D?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #BA217D to RGB:

rgb(186, 33, 125)HEX to RGB Converter →

HEX to HSL

Convert #BA217D to HSL:

hsl(324, 70%, 43%)RGB to HSL Converter →

HEX to CMYK

Convert #BA217D to CMYK:

cmyk(0%, 82%, 33%, 27%)Color Converter →

Color Meaning and Usage

#BA217D is a neutral magenta color with RGB values of 186, 33, 125 and HSL of 324°, 70%, 43%. This magenta-red hue evokes romance and playfulness, making it suitable for well suited for marketing pages and hero sections. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #BA217D is #21BA5E, creating high-contrast pairings. For softer combinations, try analogous colors like #AB21BA.

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

Contrast with #BA217D

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #BA217D?

#BA217D is a neutral magenta color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #BA217D?

#BA217D in RGB is (186, 33, 125) - 186 red, 33 green, and 125 blue.

How to use #BA217D in CSS?

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

What colors go well with #BA217D?

#21BA5E (complementary), #AB21BA (analogous), and #791551 (lighter shade) work well with #BA217D.