Skip to content

#9d7dbb

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

RGB
157, 125, 187
HSL
271°, 31%, 61%
CMYK
16, 33, 0, 27
Luminance
0.2542

At a glance

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

Hex
#9d7dbb
Hue
271°
violet
Saturation
31%
soft
Lightness
61%
balanced
Brightness
73%
HSV value
Perceived
56%
weighted brightness
Luminance
0.2542
WCAG relative
Temperature
Cool
64/100 cool
Color family
Violet
Tone
Soft
Best ink
Black
6.08:1
Closest name
Medium Purple
ΔE2000 9
Where it sits
Hue271° of 360°
Saturation31%
Lightness61%
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#9d7dbb
RGBrgb(157, 125, 187)
HSLhsl(271, 31%, 61%)
CMYKcmyk(16%, 33%, 0%, 27%)
LABlab(57.5 24.5 -27.9)
LCHlch(57.5 37.1 311.2)
OKLCHoklch(0.643 0.097 307.5)
Decimal10321339
Display P3color(display-p3 0.616 0.490 0.733)

Copy-ready code

/* CSS */
color: #9d7dbb;
background-color: #9d7dbb;
/* Tailwind (arbitrary) */
class="text-[#9d7dbb] bg-[#9d7dbb]"
/* SCSS */
$brand: #9d7dbb;
/* SwiftUI */
Color(red: 0.616, green: 0.490, blue: 0.733)
/* Android */
Color.parseColor("#9d7dbb")
/* Flutter */
Color(0xFF9D7DBB)
/* Python / OpenCV (BGR) */
(187, 125, 157)

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

Accessibility — WCAG contrast

Aa
#9d7dbb on white: 3.45:1
AA ✗ fail · AA-large · AAA
Aa
#9d7dbb on black: 6.08:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #7189BD
deuteranopia · #788AB9
tritanopia · #998694

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #9d7dbb 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
#F0ECF3
#DED5E7
#C7B5D8
#AC91C5
#9d7dbb
#7C54A1
#674686
#52386B
#3E2C4F
#271B31
Base = 500Lightest = 50 · #F7F5F9Darkest = 950 · #271B31
:root {
  --brand-50: #F7F5F9;
  --brand-100: #F0ECF3;
  --brand-200: #DED5E7;
  --brand-300: #C7B5D8;
  --brand-400: #AC91C5;
  --brand-500: #9d7dbb;
  --brand-600: #7C54A1;
  --brand-700: #674686;
  --brand-800: #52386B;
  --brand-900: #3E2C4F;
  --brand-950: #271B31;
  --brand: #9d7dbb;
  --brand-ink: #000000;
}

Colors that work with #9d7dbb

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#D7C9E3
Hairlines and dividers
Muted text#744F97
Captions on the surface
Accent#768A42
Second voice, not a rival
Dark variant#402C54
Hover, pressed, headers
Light variant#F2EEF6
Selected rows, tints
Dark surface#1C1424
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 #9d7dbb

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#9BBB7D
Analogous left#7E7DBB
Analogous right#BB7DBA
Split-complement 1#BABB7D
Split-complement 2#7DBB7E
Triadic 1#BB9D7D
Triadic 2#7DBB9D
Tetradic#BB7E7D

RGB percentages

Red61.6%
Green49.0%
Blue73.3%

CMYK percentages

Cyan16.0%
Magenta33.2%
Yellow0.0%
Key (black)26.7%

Color previews

#9d7dbb text on a black background

contrast 6.08:1

Card sample

#9d7dbb text on a white background

contrast 3.45:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9d7dbb

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.

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

#9d7dbb, answered

What color is #9d7dbb?

#9d7dbb is a balanced soft violet, closest to Medium Purple (ΔE2000 9). It sits at 271° on the hue wheel with 31% saturation and 61% lightness, which reads as cool.

What is the RGB value of #9d7dbb?

rgb(157, 125, 187) — 157 red, 125 green and 187 blue out of 255, or 61.6% / 49% / 73.3% by channel.

Is #9d7dbb a light or a dark color?

It is a mid-tone. Relative luminance is 0.2542 and perceived brightness is 56%, so black text on it reaches 6.08:1.

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

Black. It scores 6.08:1 against #9d7dbb, versus 3.45:1 for white — AA at any size.

What is the complementary color of #9d7dbb?

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

What colors go well with #9d7dbb?

For interface work: #F7F5FA as the surface, #D7C9E3 for borders, #744F97 for secondary text, #768A42 as an accent and #402C54 for hover and pressed states. For a palette, the analogous pair #7E7DBB and #BB7DBA stays calm, while #9BBB7D is the loudest partner.

What is #9d7dbb in CMYK for printing?

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

Is #9d7dbb 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 #B47DBB; nudged cooler, #857BBD.

Work with #9d7dbb in the Color Lab