Skip to content

#9b2f6f

a dark, vivid magenta / pink · warm · closest name: Medium Violet Red

RGB
155, 47, 111
HSL
324°, 54%, 40%
CMYK
0, 70, 28, 39
Luminance
0.1015

At a glance

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

Hex
#9b2f6f
Hue
324°
magenta / pink
Saturation
54%
vivid
Lightness
40%
dark
Brightness
61%
HSV value
Perceived
39%
weighted brightness
Luminance
0.1015
WCAG relative
Temperature
Warm
36/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
6.93:1
Closest name
Medium Violet Red
ΔE2000 8.1
Where it sits
Hue324° of 360°
Saturation54%
Lightness40%
Temperature
Warm ← → Cool36% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#9b2f6f
RGBrgb(155, 47, 111)
HSLhsl(324, 54%, 40%)
CMYKcmyk(0%, 70%, 28%, 39%)
LABlab(38.1 50.7 -12.4)
LCHlch(38.1 52.2 346.2)
OKLCHoklch(0.487 0.157 348.0)
Decimal10170223
Display P3color(display-p3 0.608 0.184 0.435)

Copy-ready code

/* CSS */
color: #9b2f6f;
background-color: #9b2f6f;
/* Tailwind (arbitrary) */
class="text-[#9b2f6f] bg-[#9b2f6f]"
/* SCSS */
$brand: #9b2f6f;
/* SwiftUI */
Color(red: 0.608, green: 0.184, blue: 0.435)
/* Android */
Color.parseColor("#9b2f6f")
/* Flutter */
Color(0xFF9B2F6F)
/* Python / OpenCV (BGR) */
(111, 47, 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#ffffff on #9b2f6f · 6.93:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 6.93:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.03:1
AA fail · AA large pass · AAA fail
Reading the other direction: #9b2f6f as text scores 6.93:1 on white and 3.03:1 on black.

Accessibility — WCAG contrast

Aa
#9b2f6f on white: 6.93:1
AA ✓ pass · AA-large · AAA
Aa
#9b2f6f on black: 3.03:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #3D4E71
deuteranopia · #5D616C
tritanopia · #A62B4B

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #9b2f6f is pinned to step 700; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FBF4F8
#F6E9F1
#EDCEE1
#E5A9CD
#D87EB3
#CB539A
#BC3987
#9b2f6f
#7D265A
#5B1F43
#39132A
Base = 700Lightest = 50 · #FBF4F8Darkest = 950 · #39132A
:root {
  --brand-50: #FBF4F8;
  --brand-100: #F6E9F1;
  --brand-200: #EDCEE1;
  --brand-300: #E5A9CD;
  --brand-400: #D87EB3;
  --brand-500: #CB539A;
  --brand-600: #BC3987;
  --brand-700: #9b2f6f;
  --brand-800: #7D265A;
  --brand-900: #5B1F43;
  --brand-950: #39132A;
  --brand: #9b2f6f;
  --brand-ink: #ffffff;
}

Colors that work with #9b2f6f

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#FAF4F8
Tinted page background
Border#ECC0DA
Hairlines and dividers
Muted text#9B4B7A
Captions on the surface
Accent#2B9F3D
Second voice, not a rival
Dark variant#621E46
Hover, pressed, headers
Light variant#F9EBF4
Selected rows, tints
Dark surface#24141E
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 #9b2f6f

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • 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#2F9B5B
Analogous left#912F9B
Analogous right#9B2F39
Split-complement 1#399B2F
Split-complement 2#2F9B91
Triadic 1#6F9B2F
Triadic 2#2F6F9B
Tetradic#9B912F

RGB percentages

Red60.8%
Green18.4%
Blue43.5%

CMYK percentages

Cyan0.0%
Magenta69.7%
Yellow28.4%
Key (black)39.2%

Color previews

#9b2f6f text on a black background

contrast 3.03:1

Card sample

#9b2f6f text on a white background

contrast 6.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9b2f6f

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.

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

#9b2f6f, answered

What color is #9b2f6f?

#9b2f6f is a dark vivid magenta / pink, closest to Medium Violet Red (ΔE2000 8.1). It sits at 324° on the hue wheel with 54% saturation and 40% lightness, which reads as warm.

What is the RGB value of #9b2f6f?

rgb(155, 47, 111) — 155 red, 47 green and 111 blue out of 255, or 60.8% / 18.4% / 43.5% by channel.

Is #9b2f6f a light or a dark color?

It is a dark color. Relative luminance is 0.1015 and perceived brightness is 39%, so white text on it reaches 6.93:1.

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

White. It scores 6.93:1 against #9b2f6f, versus 3.03:1 for black — AA at any size.

What is the complementary color of #9b2f6f?

#2F9B5B sits directly opposite on the wheel. Softer options are the split-complements #399B2F and #2F9B91, which give the same contrast with far less vibration.

What colors go well with #9b2f6f?

For interface work: #FAF4F8 as the surface, #ECC0DA for borders, #9B4B7A for secondary text, #2B9F3D as an accent and #621E46 for hover and pressed states. For a palette, the analogous pair #912F9B and #9B2F39 stays calm, while #2F9B5B is the loudest partner.

What is #9b2f6f in CMYK for printing?

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

Is #9b2f6f warm or cool?

Warm — it scores 36 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #9B2F47; nudged cooler, #9D2D99.

Work with #9b2f6f in the Color Lab