#AB87AB Color Information

Hex color code: #AB87AB

A neutral magenta shade, #AB87AB appears as (171, 135, 171) in RGB and (300°, 18%, 60%) in HSL. It is commonly used in modern UI design.

Try:
Color NameRosy Brown
HEX
#AB87AB
RGB
171, 135, 171
HSL
300°, 18%, 60%
CMYK
0%, 21%, 0%, 33%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #AB87AB; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

171, 135, 171

Red: 171 / Green: 135 / Blue: 171

HSL

300°, 18%, 60%

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

CMYK

0%, 21%, 0%, 33%

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

What color is #AB87AB?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #AB87AB to RGB:

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

HEX to HSL

Convert #AB87AB to HSL:

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

HEX to CMYK

Convert #AB87AB to CMYK:

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

Color Meaning and Usage

A balanced magenta tone, #AB87AB has RGB (171, 135, 171) and HSL (300°, 18%, 60%). 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 #AB87AB is #87AB87, creating high-contrast pairings. For softer combinations, try analogous colors like #9987AB.

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

Contrast with #AB87AB

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #AB87AB?

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

What is the RGB value of #AB87AB?

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

How to use #AB87AB in CSS?

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

What colors go well with #AB87AB?

#87AB87 (complementary), #9987AB (analogous), and #875E87 (lighter shade) work well with #AB87AB.