#9f7ba2
a balanced, soft magenta / pink · neutral · closest name: Orchid
At a glance
Every number on this page in one read: what #9f7ba2 is made of, how bright it looks, and which way it leans.
Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #9f7ba2 |
| RGB | rgb(159, 123, 162) |
| HSL | hsl(295, 17%, 56%) |
| CMYK | cmyk(2%, 24%, 0%, 37%) |
| LAB | lab(56.2 20.9 -15.5) |
| LCH | lch(56.2 26.1 323.5) |
| OKLCH | oklch(0.631 0.071 323.8) |
| Decimal | 10451874 |
| Display P3 | color(display-p3 0.624 0.482 0.635) |
Copy-ready code
/* CSS */
color: #9f7ba2;
background-color: #9f7ba2;
/* Tailwind (arbitrary) */
class="text-[#9f7ba2] bg-[#9f7ba2]"
/* SCSS */
$brand: #9f7ba2;
/* SwiftUI */
Color(red: 0.624, green: 0.482, blue: 0.635)
/* Android */
Color.parseColor("#9f7ba2")
/* Flutter */
Color(0xFF9F7BA2)
/* Python / OpenCV (BGR) */
(162, 123, 159)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. #9f7ba2 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: #F8F6F8;
--brand-100: #F1EEF2;
--brand-200: #E2D9E3;
--brand-300: #CFBDD1;
--brand-400: #B79CB9;
--brand-500: #9f7ba2;
--brand-600: #8C6590;
--brand-700: #755478;
--brand-800: #5E4360;
--brand-900: #453347;
--brand-950: #2B202C;
--brand: #9f7ba2;
--brand-ink: #000000;
}Colors that work with #9f7ba2
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 #9f7ba2
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 | #7EA27B | Directly opposite — maximum tension | |
| Analogous left | #8C7BA2 | Neighbour, quieter | |
| Analogous right | #A27B92 | Neighbour, quieter | |
| Split-complement 1 | #92A27B | Contrast without the clash | |
| Split-complement 2 | #7BA28C | Contrast without the clash | |
| Triadic 1 | #A29F7B | Even thirds — balanced and loud | |
| Triadic 2 | #7BA29F | Even thirds — balanced and loud | |
| Tetradic | #A28C7B | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#9f7ba2 text on a black background
contrast 5.83:1
#9f7ba2 text on a white background
contrast 3.60:1
CSS3 live lab
The quick brown fox
color: #9f7ba2;
background-color: #9f7ba2;
Glowing headline
text-shadow: 2px 2px 8px #9f7ba2;
Soft neon halo
text-shadow: 0 0 14px rgba(159, 123, 162, 0.45);
box-shadow: 0 12px 32px -8px rgba(159, 123, 162, 0.45);
border: 3px solid #9f7ba2; background: linear-gradient(135deg, #9f7ba2, #A27B8B);
Monochromatic scale
Palettes built from #9f7ba2
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: Lilac (#c8a2c8) — ΔE2000 12.4 away, with its history, psychology and brand usage.
#9f7ba2 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.
#9f7ba2, answered
What color is #9f7ba2?
#9f7ba2 is a balanced soft magenta / pink, closest to Orchid (ΔE2000 14.2). It sits at 295° on the hue wheel with 17% saturation and 56% lightness, which reads as neutral.
What is the RGB value of #9f7ba2?
rgb(159, 123, 162) — 159 red, 123 green and 162 blue out of 255, or 62.4% / 48.2% / 63.5% by channel.
Is #9f7ba2 a light or a dark color?
It is a mid-tone. Relative luminance is 0.2415 and perceived brightness is 55%, so black text on it reaches 5.83:1.
Should I use black or white text on #9f7ba2?
Black. It scores 5.83:1 against #9f7ba2, versus 3.60:1 for white — AA at any size.
What is the complementary color of #9f7ba2?
#7EA27B sits directly opposite on the wheel. Softer options are the split-complements #92A27B and #7BA28C, which give the same contrast with far less vibration.
What colors go well with #9f7ba2?
For interface work: #F8F6F9 as the surface, #DCCFDD for borders, #845F87 for secondary text, #5E7B51 as an accent and #49354B for hover and pressed states. For a palette, the analogous pair #8C7BA2 and #A27B92 stays calm, while #7EA27B is the loudest partner.
What is #9f7ba2 in CMYK for printing?
cmyk(2%, 24%, 0%, 37%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #9f7ba2 warm or cool?
Neutral — it scores 51 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #A27B97; nudged cooler, #9179A4.