#9871AD Color Information

Hex color code: #9871AD

The hex color #9871AD is a pastel purple with RGB values of (152, 113, 173) and HSL of (279°, 27%, 56%). It is commonly used in modern UI design.

Try:
Color NameLight Slate Gray
HEX
#9871AD
RGB
152, 113, 173
HSL
279°, 27%, 56%
CMYK
12%, 35%, 0%, 32%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #9871AD; 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 #9871AD; background-color: #9871AD15; }

Alert / Toast

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

Link / Accent

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

a { color: #9871AD; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #9871AD in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

152, 113, 173

Red: 152 / Green: 113 / Blue: 173

HSL

279°, 27%, 56%

Hue: 279° / Saturation: 27% / Lightness: 56%

CMYK

12%, 35%, 0%, 32%

Cyan: 12% / Magenta: 35% / Yellow: 0% / Key: 32%

What color is #9871AD?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #9871AD to RGB:

rgb(152, 113, 173)HEX to RGB Converter →

HEX to HSL

Convert #9871AD to HSL:

hsl(279, 27%, 56%)RGB to HSL Converter →

HEX to CMYK

Convert #9871AD to CMYK:

cmyk(12%, 35%, 0%, 32%)Color Converter →

Color Meaning and Usage

A soft purple tone, #9871AD has RGB (152, 113, 173) and HSL (279°, 27%, 56%). 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 #9871AD is #86AD71, creating high-contrast pairings. For softer combinations, try analogous colors like #7A71AD.

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

Contrast with #9871AD

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #9871AD?

#9871AD is a soft purple color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #9871AD?

#9871AD in RGB is (152, 113, 173) - 152 red, 113 green, and 173 blue.

How to use #9871AD in CSS?

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

What colors go well with #9871AD?

#86AD71 (complementary), #7A71AD (analogous), and #714C85 (lighter shade) work well with #9871AD.