Skip to content

#9b6dbb

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

RGB
155, 109, 187
HSL
275°, 36%, 58%
CMYK
17, 42, 0, 27
Luminance
0.2149

At a glance

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

Hex
#9b6dbb
Hue
275°
violet
Saturation
36%
soft
Lightness
58%
balanced
Brightness
73%
HSV value
Perceived
53%
weighted brightness
Luminance
0.2149
WCAG relative
Temperature
Cool
64/100 cool
Color family
Violet
Tone
Soft
Best ink
Black
5.30:1
Closest name
Medium Purple
ΔE2000 6.9
Where it sits
Hue275° of 360°
Saturation36%
Lightness58%
Temperature
Warm ← → Cool64% 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#9b6dbb
RGBrgb(155, 109, 187)
HSLhsl(275, 36%, 58%)
CMYKcmyk(17%, 42%, 0%, 27%)
LABlab(53.5 33.0 -34.2)
LCHlch(53.5 47.5 314.0)
OKLCHoklch(0.612 0.124 310.3)
Decimal10186171
Display P3color(display-p3 0.608 0.427 0.733)

Copy-ready code

/* CSS */
color: #9b6dbb;
background-color: #9b6dbb;
/* Tailwind (arbitrary) */
class="text-[#9b6dbb] bg-[#9b6dbb]"
/* SCSS */
$brand: #9b6dbb;
/* SwiftUI */
Color(red: 0.608, green: 0.427, blue: 0.733)
/* Android */
Color.parseColor("#9b6dbb")
/* Flutter */
Color(0xFF9B6DBB)
/* Python / OpenCV (BGR) */
(187, 109, 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 #9b6dbb · 5.30:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.96:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.30:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #9b6dbb as text scores 3.96:1 on white and 5.30:1 on black.

Accessibility — WCAG contrast

Aa
#9b6dbb on white: 3.96:1
AA ✗ fail · AA-large · AAA
Aa
#9b6dbb on black: 5.30:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5D7EBE
deuteranopia · #6881B9
tritanopia · #97798B

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #9b6dbb 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.

#F8F5FA
#F0EBF4
#E0D3E8
#CBB2DB
#B08CC9
#9b6dbb
#824EA7
#6D418B
#57346F
#412952
#291933
Base = 500Lightest = 50 · #F8F5FADarkest = 950 · #291933
:root {
  --brand-50: #F8F5FA;
  --brand-100: #F0EBF4;
  --brand-200: #E0D3E8;
  --brand-300: #CBB2DB;
  --brand-400: #B08CC9;
  --brand-500: #9b6dbb;
  --brand-600: #824EA7;
  --brand-700: #6D418B;
  --brand-800: #57346F;
  --brand-900: #412952;
  --brand-950: #291933;
  --brand: #9b6dbb;
  --brand-ink: #000000;
}

Colors that work with #9b6dbb

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#F8F5FA
Tinted page background
Border#D9C7E5
Hairlines and dividers
Muted text#7A4B9B
Captions on the surface
Accent#738F3D
Second voice, not a rival
Dark variant#442957
Hover, pressed, headers
Light variant#F3EEF7
Selected rows, tints
Dark surface#1E1424
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 #9b6dbb

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#8DBB6D
Analogous left#746DBB
Analogous right#BB6DB4
Split-complement 1#B4BB6D
Split-complement 2#6DBB74
Triadic 1#BB9B6D
Triadic 2#6DBB9B
Tetradic#BB746D

RGB percentages

Red60.8%
Green42.7%
Blue73.3%

CMYK percentages

Cyan17.1%
Magenta41.7%
Yellow0.0%
Key (black)26.7%

Color previews

#9b6dbb text on a black background

contrast 5.30:1

Card sample

#9b6dbb text on a white background

contrast 3.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9b6dbb

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.

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

#9b6dbb, answered

What color is #9b6dbb?

#9b6dbb is a balanced soft violet, closest to Medium Purple (ΔE2000 6.9). It sits at 275° on the hue wheel with 36% saturation and 58% lightness, which reads as cool.

What is the RGB value of #9b6dbb?

rgb(155, 109, 187) — 155 red, 109 green and 187 blue out of 255, or 60.8% / 42.7% / 73.3% by channel.

Is #9b6dbb a light or a dark color?

It is a mid-tone. Relative luminance is 0.2149 and perceived brightness is 53%, so black text on it reaches 5.30:1.

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

Black. It scores 5.30:1 against #9b6dbb, versus 3.96:1 for white — AA at any size.

What is the complementary color of #9b6dbb?

#8DBB6D sits directly opposite on the wheel. Softer options are the split-complements #B4BB6D and #6DBB74, which give the same contrast with far less vibration.

What colors go well with #9b6dbb?

For interface work: #F8F5FA as the surface, #D9C7E5 for borders, #7A4B9B for secondary text, #738F3D as an accent and #442957 for hover and pressed states. For a palette, the analogous pair #746DBB and #BB6DB4 stays calm, while #8DBB6D is the loudest partner.

What is #9b6dbb in CMYK for printing?

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

Is #9b6dbb warm or cool?

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

Work with #9b6dbb in the Color Lab