#AB87CA Color Information

Hex color code: #AB87CA

#AB87CA is a subtle purple color. In RGB it is (171, 135, 202), and in HSL it is (272°, 39%, 66%). It is often used for branding and logos.

Try:
Color NameMedium Purple
HEX
#AB87CA
RGB
171, 135, 202
HSL
272°, 39%, 66%
CMYK
15%, 33%, 0%, 21%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #AB87CA; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

171, 135, 202

Red: 171 / Green: 135 / Blue: 202

HSL

272°, 39%, 66%

Hue: 272° / Saturation: 39% / Lightness: 66%

CMYK

15%, 33%, 0%, 21%

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

What color is #AB87CA?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #AB87CA to RGB:

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

HEX to HSL

Convert #AB87CA to HSL:

hsl(272, 39%, 66%)RGB to HSL Converter →

HEX to CMYK

Convert #AB87CA to CMYK:

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

Color Meaning and Usage

A gentle purple tone, #AB87CA has RGB (171, 135, 202) and HSL (272°, 39%, 66%). Known for evoking romance and playfulness, this magenta-red hue is well suited for marketing pages and hero sections. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #AB87CA is #A6CA86, creating high-contrast pairings. For softer combinations, try analogous colors like #8986CA.

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

Contrast with #AB87CA

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

Contrast Ratio: 7.05:1
WCAG AA: Pass
WCAG AAA: Pass

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #AB87CA?

#AB87CA is a gentle purple color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #AB87CA?

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

How to use #AB87CA in CSS?

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

What colors go well with #AB87CA?

#A6CA86 (complementary), #8986CA (analogous), and #8551B3 (lighter shade) work well with #AB87CA.