Skip to content

#9f7ba2

a balanced, soft magenta / pink · neutral · closest name: Orchid

RGB
159, 123, 162
HSL
295°, 17%, 56%
CMYK
2, 24, 0, 37
Luminance
0.2415

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.

Hex
#9f7ba2
Hue
295°
magenta / pink
Saturation
17%
soft
Lightness
56%
balanced
Brightness
64%
HSV value
Perceived
55%
weighted brightness
Luminance
0.2415
WCAG relative
Temperature
Neutral
51/100 cool
Color family
Magenta / pink
Tone
Soft
Best ink
Black
5.83:1
Closest name
Orchid
ΔE2000 14.2
Where it sits
Hue295° of 360°
Saturation17%
Lightness56%
Temperature
Warm ← → Cool51% cool

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
RGBrgb(159, 123, 162)
HSLhsl(295, 17%, 56%)
CMYKcmyk(2%, 24%, 0%, 37%)
LABlab(56.2 20.9 -15.5)
LCHlch(56.2 26.1 323.5)
OKLCHoklch(0.631 0.071 323.8)
Decimal10451874
Display P3color(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.

Readable at a glance#000000 on #9f7ba2 · 5.83:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.60:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.83:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #9f7ba2 as text scores 3.60:1 on white and 5.83:1 on black.

Accessibility — WCAG contrast

Aa
#9f7ba2 on white: 3.60:1
AA ✗ fail · AA-large · AAA
Aa
#9f7ba2 on black: 5.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #7884A4
deuteranopia · #8088A1
tritanopia · #A17F89

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.

#F8F6F8
#F1EEF2
#E2D9E3
#CFBDD1
#B79CB9
#9f7ba2
#8C6590
#755478
#5E4360
#453347
#2B202C
Base = 500Lightest = 50 · #F8F6F8Darkest = 950 · #2B202C
: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.

Text on it#000000
Black wins here
Surface#F8F6F9
Tinted page background
Border#DCCFDD
Hairlines and dividers
Muted text#845F87
Captions on the surface
Accent#5E7B51
Second voice, not a rival
Dark variant#49354B
Hover, pressed, headers
Light variant#F4F0F4
Selected rows, tints
Dark surface#201721
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 #9f7ba2

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#7EA27B
Analogous left#8C7BA2
Analogous right#A27B92
Split-complement 1#92A27B
Split-complement 2#7BA28C
Triadic 1#A29F7B
Triadic 2#7BA29F
Tetradic#A28C7B

RGB percentages

Red62.4%
Green48.2%
Blue63.5%

CMYK percentages

Cyan1.9%
Magenta24.1%
Yellow0.0%
Key (black)36.5%

Color previews

#9f7ba2 text on a black background

contrast 5.83:1

Card sample

#9f7ba2 text on a white background

contrast 3.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(159, 123, 162, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(159, 123, 162, 0.45);
Border & gradient
Gradient panel
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.

#9f7ba2 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
BeautyFashionLifestyleYouth brands
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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.

Work with #9f7ba2 in the Color Lab