Skip to content

#987bbc

a balanced, soft violet · cool · closest name: Medium Purple

RGB
152, 123, 188
HSL
267°, 33%, 61%
CMYK
19, 35, 0, 26
Luminance
0.2447

At a glance

Every number on this page in one read: what #987bbc is made of, how bright it looks, and which way it leans.

Hex
#987bbc
Hue
267°
violet
Saturation
33%
soft
Lightness
61%
balanced
Brightness
74%
HSV value
Perceived
55%
weighted brightness
Luminance
0.2447
WCAG relative
Temperature
Cool
67/100 cool
Color family
Violet
Tone
Soft
Best ink
Black
5.89:1
Closest name
Medium Purple
ΔE2000 7.8
Where it sits
Hue267° of 360°
Saturation33%
Lightness61%
Temperature
Warm ← → Cool67% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#987bbc
RGBrgb(152, 123, 188)
HSLhsl(267, 33%, 61%)
CMYKcmyk(19%, 35%, 0%, 26%)
LABlab(56.6 24.3 -30.0)
LCHlch(56.6 38.6 309.0)
OKLCHoklch(0.635 0.100 304.2)
Decimal9993148
Display P3color(display-p3 0.596 0.482 0.737)

Copy-ready code

/* CSS */
color: #987bbc;
background-color: #987bbc;
/* Tailwind (arbitrary) */
class="text-[#987bbc] bg-[#987bbc]"
/* SCSS */
$brand: #987bbc;
/* SwiftUI */
Color(red: 0.596, green: 0.482, blue: 0.737)
/* Android */
Color.parseColor("#987bbc")
/* Flutter */
Color(0xFF987BBC)
/* Python / OpenCV (BGR) */
(188, 123, 152)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #987bbc · 5.89:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.56:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.89:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #987bbc as text scores 3.56:1 on white and 5.89:1 on black.

Accessibility — WCAG contrast

Aa
#987bbc on white: 3.56:1
AA ✗ fail · AA-large · AAA
Aa
#987bbc on black: 5.89:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6D87BF
deuteranopia · #7388BA
tritanopia · #928593

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #987bbc is pinned to step 500; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F7F5F9
#EFECF4
#DDD4E7
#C5B5D9
#A88FC6
#987bbc
#7652A2
#624587
#4F376C
#3B2B50
#251B32
Base = 500Lightest = 50 · #F7F5F9Darkest = 950 · #251B32
:root {
  --brand-50: #F7F5F9;
  --brand-100: #EFECF4;
  --brand-200: #DDD4E7;
  --brand-300: #C5B5D9;
  --brand-400: #A88FC6;
  --brand-500: #987bbc;
  --brand-600: #7652A2;
  --brand-700: #624587;
  --brand-800: #4F376C;
  --brand-900: #3B2B50;
  --brand-950: #251B32;
  --brand: #987bbc;
  --brand-ink: #000000;
}

Colors that work with #987bbc

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F7F5FA
Tinted page background
Border#D5C9E4
Hairlines and dividers
Muted text#6F4D98
Captions on the surface
Accent#7D8B41
Second voice, not a rival
Dark variant#3E2B55
Hover, pressed, headers
Light variant#F2EEF6
Selected rows, tints
Dark surface#1B1424
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #987bbc

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#9FBC7B
Analogous left#7B7EBC
Analogous right#B97BBC
Split-complement 1#BCB97B
Split-complement 2#7EBC7B
Triadic 1#BC987B
Triadic 2#7BBC98
Tetradic#BC7B7E

RGB percentages

Red59.6%
Green48.2%
Blue73.7%

CMYK percentages

Cyan19.1%
Magenta34.6%
Yellow0.0%
Key (black)26.3%

Color previews

#987bbc text on a black background

contrast 5.89:1

Card sample

#987bbc text on a white background

contrast 3.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #987bbc;
Background color
Panel with #987bbc background
background-color: #987bbc;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #987bbc;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(152, 123, 188, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(152, 123, 188, 0.45);
Border & gradient
Gradient panel
border: 3px solid #987bbc;
background: linear-gradient(135deg, #987bbc, #BC7BB5);

Monochromatic scale

Palettes built from #987bbc

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#987bbc in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#987bbc, answered

What color is #987bbc?

#987bbc is a balanced soft violet, closest to Medium Purple (ΔE2000 7.8). It sits at 267° on the hue wheel with 33% saturation and 61% lightness, which reads as cool.

What is the RGB value of #987bbc?

rgb(152, 123, 188) — 152 red, 123 green and 188 blue out of 255, or 59.6% / 48.2% / 73.7% by channel.

Is #987bbc a light or a dark color?

It is a mid-tone. Relative luminance is 0.2447 and perceived brightness is 55%, so black text on it reaches 5.89:1.

Should I use black or white text on #987bbc?

Black. It scores 5.89:1 against #987bbc, versus 3.56:1 for white — AA at any size.

What is the complementary color of #987bbc?

#9FBC7B sits directly opposite on the wheel. Softer options are the split-complements #BCB97B and #7EBC7B, which give the same contrast with far less vibration.

What colors go well with #987bbc?

For interface work: #F7F5FA as the surface, #D5C9E4 for borders, #6F4D98 for secondary text, #7D8B41 as an accent and #3E2B55 for hover and pressed states. For a palette, the analogous pair #7B7EBC and #B97BBC stays calm, while #9FBC7B is the loudest partner.

What is #987bbc in CMYK for printing?

cmyk(19%, 35%, 0%, 26%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #987bbc warm or cool?

Cool — it scores 67 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B07BBC; nudged cooler, #7F79BE.

Work with #987bbc in the Color Lab