#AB87A5 Color Information

Hex color code: #AB87A5

The hex color #AB87A5 is a balanced magenta with RGB values of (171, 135, 165) and HSL of (310°, 18%, 60%). It is frequently seen in web interfaces.

Try:
Color NameRosy Brown
HEX
#AB87A5
RGB
171, 135, 165
HSL
310°, 18%, 60%
CMYK
0%, 21%, 4%, 33%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #AB87A5; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

171, 135, 165

Red: 171 / Green: 135 / Blue: 165

HSL

310°, 18%, 60%

Hue: 310° / Saturation: 18% / Lightness: 60%

CMYK

0%, 21%, 4%, 33%

Cyan: 0% / Magenta: 21% / Yellow: 4% / Key: 33%

What color is #AB87A5?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #AB87A5 to RGB:

rgb(171, 135, 165)HEX to RGB Converter →

HEX to HSL

Convert #AB87A5 to HSL:

hsl(310, 18%, 60%)RGB to HSL Converter →

HEX to CMYK

Convert #AB87A5 to CMYK:

cmyk(0%, 21%, 4%, 33%)Color Converter →

Color Meaning and Usage

A balanced magenta tone, #AB87A5 has RGB (171, 135, 165) and HSL (310°, 18%, 60%). Known for evoking romance and playfulness, this magenta-red hue is commonly used in modern UI design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #AB87A5 is #87AB8D, creating high-contrast pairings. For softer combinations, try analogous colors like #9F87AB.

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

Contrast with #AB87A5

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #AB87A5?

#AB87A5 is a balanced magenta color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #AB87A5?

#AB87A5 in RGB is (171, 135, 165) - 171 red, 135 green, and 165 blue.

How to use #AB87A5 in CSS?

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

What colors go well with #AB87A5?

#87AB8D (complementary), #9F87AB (analogous), and #875E81 (lighter shade) work well with #AB87A5.