#AB2172 Color Information

Hex color code: #AB2172

A understated magenta shade, #AB2172 appears as (171, 33, 114) in RGB and (325°, 68%, 40%) in HSL. It is popular in mobile app design.

Try:
Color NameMedium Violet Red
HEX
#AB2172
RGB
171, 33, 114
HSL
325°, 68%, 40%
CMYK
0%, 81%, 33%, 33%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #AB2172; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

171, 33, 114

Red: 171 / Green: 33 / Blue: 114

HSL

325°, 68%, 40%

Hue: 325° / Saturation: 68% / Lightness: 40%

CMYK

0%, 81%, 33%, 33%

Cyan: 0% / Magenta: 81% / Yellow: 33% / Key: 33%

What color is #AB2172?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #AB2172 to RGB:

rgb(171, 33, 114)HEX to RGB Converter →

HEX to HSL

Convert #AB2172 to HSL:

hsl(325, 68%, 40%)RGB to HSL Converter →

HEX to CMYK

Convert #AB2172 to CMYK:

cmyk(0%, 81%, 33%, 33%)Color Converter →

Color Meaning and Usage

A muted magenta tone, #AB2172 has RGB (171, 33, 114) and HSL (325°, 68%, 40%). Known for evoking romance and playfulness, this magenta-red hue is frequently seen in web interfaces. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #AB2172 is #21AB5A, creating high-contrast pairings. For softer combinations, try analogous colors like #A021AB.

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

Contrast with #AB2172

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #AB2172?

#AB2172 is a muted magenta color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #AB2172?

#AB2172 in RGB is (171, 33, 114) - 171 red, 33 green, and 114 blue.

How to use #AB2172 in CSS?

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

What colors go well with #AB2172?

#21AB5A (complementary), #A021AB (analogous), and #6B1447 (lighter shade) work well with #AB2172.