#9b7dbb
a balanced, soft violet · cool · closest name: Medium Purple
At a glance
Every number on this page in one read: what #9b7dbb is made of, how bright it looks, and which way it leans.
Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #9b7dbb |
| RGB | rgb(155, 125, 187) |
| HSL | hsl(269, 31%, 61%) |
| CMYK | cmyk(17%, 33%, 0%, 27%) |
| LAB | lab(57.3 23.8 -28.2) |
| LCH | lch(57.3 37.0 310.2) |
| OKLCH | oklch(0.641 0.096 306.0) |
| Decimal | 10190267 |
| Display P3 | color(display-p3 0.608 0.490 0.733) |
Copy-ready code
/* CSS */
color: #9b7dbb;
background-color: #9b7dbb;
/* Tailwind (arbitrary) */
class="text-[#9b7dbb] bg-[#9b7dbb]"
/* SCSS */
$brand: #9b7dbb;
/* SwiftUI */
Color(red: 0.608, green: 0.490, blue: 0.733)
/* Android */
Color.parseColor("#9b7dbb")
/* Flutter */
Color(0xFF9B7DBB)
/* Python / OpenCV (BGR) */
(187, 125, 155)Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Accessibility — WCAG contrast
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #9b7dbb 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.
:root {
--brand-50: #F7F5F9;
--brand-100: #F0ECF3;
--brand-200: #DED5E7;
--brand-300: #C6B5D8;
--brand-400: #AA91C5;
--brand-500: #9b7dbb;
--brand-600: #7954A1;
--brand-700: #654686;
--brand-800: #51386B;
--brand-900: #3D2C4F;
--brand-950: #261B31;
--brand: #9b7dbb;
--brand-ink: #000000;
}Colors that work with #9b7dbb
Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #9b7dbb
Derived from its contrast, chroma and lightness — not from taste.
- ✓Headings from 24px up on white
- ✓Text and icons on dark surfaces
- ✓Charts, tags and secondary surfaces
- ✓Brand accents, badges and data highlights
- ⚠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 | #9DBB7D | Directly opposite — maximum tension | |
| Analogous left | #7D7EBB | Neighbour, quieter | |
| Analogous right | #BA7DBB | Neighbour, quieter | |
| Split-complement 1 | #BBBA7D | Contrast without the clash | |
| Split-complement 2 | #7EBB7D | Contrast without the clash | |
| Triadic 1 | #BB9B7D | Even thirds — balanced and loud | |
| Triadic 2 | #7DBB9B | Even thirds — balanced and loud | |
| Tetradic | #BB7D7E | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#9b7dbb text on a black background
contrast 6.04:1
#9b7dbb text on a white background
contrast 3.47:1
CSS3 live lab
The quick brown fox
color: #9b7dbb;
background-color: #9b7dbb;
Glowing headline
text-shadow: 2px 2px 8px #9b7dbb;
Soft neon halo
text-shadow: 0 0 14px rgba(155, 125, 187, 0.45);
box-shadow: 0 12px 32px -8px rgba(155, 125, 187, 0.45);
border: 3px solid #9b7dbb; background: linear-gradient(135deg, #9b7dbb, #BB7DB2);
Monochromatic scale
Palettes built from #9b7dbb
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.
Closest color with a full write-up: Orchid (#da70d6) — ΔE2000 12.9 away, with its history, psychology and brand usage.
#9b7dbb in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Converts to four-color process without much drama. Proof it anyway.
#9b7dbb, answered
What color is #9b7dbb?
#9b7dbb is a balanced soft violet, closest to Medium Purple (ΔE2000 8.7). It sits at 269° on the hue wheel with 31% saturation and 61% lightness, which reads as cool.
What is the RGB value of #9b7dbb?
rgb(155, 125, 187) — 155 red, 125 green and 187 blue out of 255, or 60.8% / 49% / 73.3% by channel.
Is #9b7dbb a light or a dark color?
It is a mid-tone. Relative luminance is 0.2522 and perceived brightness is 56%, so black text on it reaches 6.04:1.
Should I use black or white text on #9b7dbb?
Black. It scores 6.04:1 against #9b7dbb, versus 3.47:1 for white — AA at any size.
What is the complementary color of #9b7dbb?
#9DBB7D sits directly opposite on the wheel. Softer options are the split-complements #BBBA7D and #7EBB7D, which give the same contrast with far less vibration.
What colors go well with #9b7dbb?
For interface work: #F7F5FA as the surface, #D6C9E3 for borders, #724F97 for secondary text, #7A8A42 as an accent and #3F2C54 for hover and pressed states. For a palette, the analogous pair #7D7EBB and #BA7DBB stays calm, while #9DBB7D is the loudest partner.
What is #9b7dbb in CMYK for printing?
cmyk(17%, 33%, 0%, 27%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #9b7dbb warm or cool?
Cool — it scores 65 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B27DBB; nudged cooler, #837BBD.