#987BEF Color Information

Hex color code: #987BEF

The hex color #987BEF is a vivid purple with RGB values of (152, 123, 239) and HSL of (255°, 78%, 71%). It is commonly used in modern UI design.

Try:
Color NameMedium Purple
HEX
#987BEF
RGB
152, 123, 239
HSL
255°, 78%, 71%
CMYK
36%, 49%, 0%, 6%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #987BEF; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

152, 123, 239

Red: 152 / Green: 123 / Blue: 239

HSL

255°, 78%, 71%

Hue: 255° / Saturation: 78% / Lightness: 71%

CMYK

36%, 49%, 0%, 6%

Cyan: 36% / Magenta: 49% / Yellow: 0% / Key: 6%

What color is #987BEF?

#987BEF is a blue-purple hue associated with creativity and luxury.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #987BEF to RGB:

rgb(152, 123, 239)HEX to RGB Converter →

HEX to HSL

Convert #987BEF to HSL:

hsl(255, 78%, 71%)RGB to HSL Converter →

HEX to CMYK

Convert #987BEF to CMYK:

cmyk(36%, 49%, 0%, 6%)Color Converter →

Color Meaning and Usage

#987BEF is a vivid purple color with RGB values of 152, 123, 239 and HSL of 255°, 78%, 71%. This blue-purple hue evokes creativity and luxury, making it suitable for often used for branding and logos. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #987BEF is #D2EF7B, creating high-contrast pairings. For softer combinations, try analogous colors like #7B98EF.

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

Contrast with #987BEF

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #987BEF?

#987BEF is a vivid purple color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #987BEF?

#987BEF in RGB is (152, 123, 239) - 152 red, 123 green, and 239 blue.

How to use #987BEF in CSS?

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

What colors go well with #987BEF?

#D2EF7B (complementary), #7B98EF (analogous), and #6337E6 (lighter shade) work well with #987BEF.