#987EA5 Color Information

Hex color code: #987EA5

The hex color #987EA5 is a understated purple with RGB values of (152, 126, 165) and HSL of (280°, 18%, 57%). It is popular in mobile app design.

Try:
Color NameLight Slate Gray
HEX
#987EA5
RGB
152, 126, 165
HSL
280°, 18%, 57%
CMYK
8%, 24%, 0%, 35%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #987EA5; 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 #987EA5; background-color: #987EA515; }

Alert / Toast

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

Link / Accent

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

a { color: #987EA5; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #987EA5 in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

152, 126, 165

Red: 152 / Green: 126 / Blue: 165

HSL

280°, 18%, 57%

Hue: 280° / Saturation: 18% / Lightness: 57%

CMYK

8%, 24%, 0%, 35%

Cyan: 8% / Magenta: 24% / Yellow: 0% / Key: 35%

What color is #987EA5?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #987EA5 to RGB:

rgb(152, 126, 165)HEX to RGB Converter →

HEX to HSL

Convert #987EA5 to HSL:

hsl(280, 18%, 57%)RGB to HSL Converter →

HEX to CMYK

Convert #987EA5 to CMYK:

cmyk(8%, 24%, 0%, 35%)Color Converter →

Color Meaning and Usage

A balanced purple tone, #987EA5 has RGB (152, 126, 165) and HSL (280°, 18%, 57%). Known for evoking romance and playfulness, this magenta-red hue is often used for buttons, highlights, and accents. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #987EA5 is #8BA57E, creating high-contrast pairings. For softer combinations, try analogous colors like #847EA5.

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

Contrast with #987EA5

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #987EA5?

#987EA5 is a balanced purple color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #987EA5?

#987EA5 in RGB is (152, 126, 165) - 152 red, 126 green, and 165 blue.

How to use #987EA5 in CSS?

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

What colors go well with #987EA5?

#8BA57E (complementary), #847EA5 (analogous), and #72587E (lighter shade) work well with #987EA5.