Skip to content

#9b2f5f

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

RGB
155, 47, 95
HSL
333°, 54%, 40%
CMYK
0, 70, 39, 39
Luminance
0.0983

At a glance

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

Hex
#9b2f5f
Hue
333°
magenta / pink
Saturation
54%
vivid
Lightness
40%
dark
Brightness
61%
HSV value
Perceived
38%
weighted brightness
Luminance
0.0983
WCAG relative
Temperature
Warm
32/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
7.08:1
Closest name
Medium Violet Red
ΔE2000 9.8
Where it sits
Hue333° of 360°
Saturation54%
Lightness40%
Temperature
Warm ← → Cool32% 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#9b2f5f
RGBrgb(155, 47, 95)
HSLhsl(333, 54%, 40%)
CMYKcmyk(0%, 70%, 39%, 39%)
LABlab(37.5 48.7 -3.2)
LCHlch(37.5 48.8 356.3)
OKLCHoklch(0.481 0.149 357.0)
Decimal10170207
Display P3color(display-p3 0.608 0.184 0.373)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9b2f5f on white: 7.08:1
AA ✓ pass · AA-large · AAA
Aa
#9b2f5f on black: 2.97:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #434B60
deuteranopia · #61605C
tritanopia · #A72443

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #9b2f5f 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.

#FBF4F7
#F6E9EF
#EDCEDC
#E5A9C4
#D87EA6
#CB5388
#BC3973
#9b2f5f
#7D264D
#5B1F3A
#391324
Base = 700Lightest = 50 · #FBF4F7Darkest = 950 · #391324
:root {
  --brand-50: #FBF4F7;
  --brand-100: #F6E9EF;
  --brand-200: #EDCEDC;
  --brand-300: #E5A9C4;
  --brand-400: #D87EA6;
  --brand-500: #CB5388;
  --brand-600: #BC3973;
  --brand-700: #9b2f5f;
  --brand-800: #7D264D;
  --brand-900: #5B1F3A;
  --brand-950: #391324;
  --brand: #9b2f5f;
  --brand-ink: #ffffff;
}

Colors that work with #9b2f5f

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#FAF4F7
Tinted page background
Border#ECC0D4
Hairlines and dividers
Muted text#9B4B6E
Captions on the surface
Accent#2B9F4E
Second voice, not a rival
Dark variant#621E3C
Hover, pressed, headers
Light variant#F9EBF1
Selected rows, tints
Dark surface#24141B
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 #9b2f5f

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
  • Text on black or near-black surfaces
  • 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#2F9B6B
Analogous left#9B2F95
Analogous right#9B352F
Split-complement 1#2F9B35
Split-complement 2#2F959B
Triadic 1#5F9B2F
Triadic 2#2F5F9B
Tetradic#959B2F

RGB percentages

Red60.8%
Green18.4%
Blue37.3%

CMYK percentages

Cyan0.0%
Magenta69.7%
Yellow38.7%
Key (black)39.2%

Color previews

#9b2f5f text on a black background

contrast 2.97:1

Card sample

#9b2f5f text on a white background

contrast 7.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9b2f5f

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.

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

#9b2f5f, answered

What color is #9b2f5f?

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

What is the RGB value of #9b2f5f?

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

Is #9b2f5f a light or a dark color?

It is a dark color. Relative luminance is 0.0983 and perceived brightness is 38%, so white text on it reaches 7.08:1.

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

White. It scores 7.08:1 against #9b2f5f, versus 2.97:1 for black — AAA at any size.

What is the complementary color of #9b2f5f?

#2F9B6B sits directly opposite on the wheel. Softer options are the split-complements #2F9B35 and #2F959B, which give the same contrast with far less vibration.

What colors go well with #9b2f5f?

For interface work: #FAF4F7 as the surface, #ECC0D4 for borders, #9B4B6E for secondary text, #2B9F4E as an accent and #621E3C for hover and pressed states. For a palette, the analogous pair #9B2F95 and #9B352F stays calm, while #2F9B6B is the loudest partner.

What is #9b2f5f in CMYK for printing?

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

Is #9b2f5f warm or cool?

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

Work with #9b2f5f in the Color Lab