#AB87BA Color Information

Hex color code: #AB87BA

#AB87BA is a pastel purple color. In RGB it is (171, 135, 186), and in HSL it is (282°, 27%, 63%). It is frequently seen in web interfaces.

Try:
Color NameMedium Purple
HEX
#AB87BA
RGB
171, 135, 186
HSL
282°, 27%, 63%
CMYK
8%, 27%, 0%, 27%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #AB87BA; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

171, 135, 186

Red: 171 / Green: 135 / Blue: 186

HSL

282°, 27%, 63%

Hue: 282° / Saturation: 27% / Lightness: 63%

CMYK

8%, 27%, 0%, 27%

Cyan: 8% / Magenta: 27% / Yellow: 0% / Key: 27%

What color is #AB87BA?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #AB87BA to RGB:

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

HEX to HSL

Convert #AB87BA to HSL:

hsl(282, 27%, 63%)RGB to HSL Converter →

HEX to CMYK

Convert #AB87BA to CMYK:

cmyk(8%, 27%, 0%, 27%)Color Converter →

Color Meaning and Usage

A delicate purple tone, #AB87BA has RGB (171, 135, 186) and HSL (282°, 27%, 63%). Known for evoking romance and playfulness, this magenta-red hue is a common choice for dashboards and SaaS products. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #AB87BA is #96BA87, creating high-contrast pairings. For softer combinations, try analogous colors like #9187BA.

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

Contrast with #AB87BA

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #AB87BA?

#AB87BA is a delicate purple color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #AB87BA?

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

How to use #AB87BA in CSS?

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

What colors go well with #AB87BA?

#96BA87 (complementary), #9187BA (analogous), and #88599B (lighter shade) work well with #AB87BA.