Skip to content

#9b87c3

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

RGB
155, 135, 195
HSL
260°, 33%, 65%
CMYK
21, 31, 0, 24
Luminance
0.2824

At a glance

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

Hex
#9b87c3
Hue
260°
violet
Saturation
33%
soft
Lightness
65%
balanced
Brightness
76%
HSV value
Perceived
58%
weighted brightness
Luminance
0.2824
WCAG relative
Temperature
Cool
71/100 cool
Color family
Violet
Tone
Soft
Best ink
Black
6.65:1
Closest name
Medium Purple
ΔE2000 9.7
Where it sits
Hue260° of 360°
Saturation33%
Lightness65%
Temperature
Warm ← → Cool71% 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#9b87c3
RGBrgb(155, 135, 195)
HSLhsl(260, 33%, 65%)
CMYKcmyk(21%, 31%, 0%, 24%)
LABlab(60.1 19.9 -28.4)
LCHlch(60.1 34.7 305.0)
OKLCHoklch(0.664 0.090 299.3)
Decimal10192835
Display P3color(display-p3 0.608 0.529 0.765)

Copy-ready code

/* CSS */
color: #9b87c3;
background-color: #9b87c3;
/* Tailwind (arbitrary) */
class="text-[#9b87c3] bg-[#9b87c3]"
/* SCSS */
$brand: #9b87c3;
/* SwiftUI */
Color(red: 0.608, green: 0.529, blue: 0.765)
/* Android */
Color.parseColor("#9b87c3")
/* Flutter */
Color(0xFF9B87C3)
/* Python / OpenCV (BGR) */
(195, 135, 155)

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 #9b87c3 · 6.65:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.16:1
AA fail · AA large pass · AAA fail
Aa
Black text · 6.65:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #9b87c3 as text scores 3.16:1 on white and 6.65:1 on black.

Accessibility — WCAG contrast

Aa
#9b87c3 on white: 3.16:1
AA ✗ fail · AA-large · AAA
Aa
#9b87c3 on black: 6.65:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #7A91C5
deuteranopia · #7D90C1
tritanopia · #94909D

Color scale — 50 to 950

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

#F7F5F9
#EEECF4
#DBD4E8
#C1B4DA
#9b87c3
#8269B4
#6D52A3
#5B4488
#49366D
#372A50
#221B32
Base = 400Lightest = 50 · #F7F5F9Darkest = 950 · #221B32
:root {
  --brand-50: #F7F5F9;
  --brand-100: #EEECF4;
  --brand-200: #DBD4E8;
  --brand-300: #C1B4DA;
  --brand-400: #9b87c3;
  --brand-500: #8269B4;
  --brand-600: #6D52A3;
  --brand-700: #5B4488;
  --brand-800: #49366D;
  --brand-900: #372A50;
  --brand-950: #221B32;
  --brand: #9b87c3;
  --brand-ink: #000000;
}

Colors that work with #9b87c3

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#D2C9E4
Hairlines and dividers
Muted text#664D99
Captions on the surface
Accent#868D3F
Second voice, not a rival
Dark variant#392B55
Hover, pressed, headers
Light variant#F1EEF6
Selected rows, tints
Dark surface#191424
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 #9b87c3

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#AFC387
Analogous left#8791C3
Analogous right#B987C3
Split-complement 1#C3B987
Split-complement 2#91C387
Triadic 1#C39B87
Triadic 2#87C39B
Tetradic#C38791

RGB percentages

Red60.8%
Green52.9%
Blue76.5%

CMYK percentages

Cyan20.5%
Magenta30.8%
Yellow0.0%
Key (black)23.5%

Color previews

#9b87c3 text on a black background

contrast 6.65:1

Card sample

#9b87c3 text on a white background

contrast 3.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #9b87c3;
Background color
Panel with #9b87c3 background
background-color: #9b87c3;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #9b87c3;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(155, 135, 195, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(155, 135, 195, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9b87c3;
background: linear-gradient(135deg, #9b87c3, #C387C3);

Monochromatic scale

Palettes built from #9b87c3

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.

#9b87c3 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.

#9b87c3, answered

What color is #9b87c3?

#9b87c3 is a balanced soft violet, closest to Medium Purple (ΔE2000 9.7). It sits at 260° on the hue wheel with 33% saturation and 65% lightness, which reads as cool.

What is the RGB value of #9b87c3?

rgb(155, 135, 195) — 155 red, 135 green and 195 blue out of 255, or 60.8% / 52.9% / 76.5% by channel.

Is #9b87c3 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2824 and perceived brightness is 58%, so black text on it reaches 6.65:1.

Should I use black or white text on #9b87c3?

Black. It scores 6.65:1 against #9b87c3, versus 3.16:1 for white — AA at any size.

What is the complementary color of #9b87c3?

#AFC387 sits directly opposite on the wheel. Softer options are the split-complements #C3B987 and #91C387, which give the same contrast with far less vibration.

What colors go well with #9b87c3?

For interface work: #F7F5FA as the surface, #D2C9E4 for borders, #664D99 for secondary text, #868D3F as an accent and #392B55 for hover and pressed states. For a palette, the analogous pair #8791C3 and #B987C3 stays calm, while #AFC387 is the loudest partner.

What is #9b87c3 in CMYK for printing?

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

Is #9b87c3 warm or cool?

Cool — it scores 71 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B187C3; nudged cooler, #8587C5.

Work with #9b87c3 in the Color Lab