Skip to content

#9b2f4f

a dark, vivid magenta / pink · warm · closest name: Brown

RGB
155, 47, 79
HSL
342°, 54%, 40%
CMYK
0, 70, 49, 39
Luminance
0.0957

At a glance

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

Hex
#9b2f4f
Hue
342°
magenta / pink
Saturation
54%
vivid
Lightness
40%
dark
Brightness
61%
HSV value
Perceived
38%
weighted brightness
Luminance
0.0957
WCAG relative
Temperature
Warm
27/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
7.21:1
Closest name
Brown
ΔE2000 12.8
Where it sits
Hue342° of 360°
Saturation54%
Lightness40%
Temperature
Warm ← → Cool27% 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#9b2f4f
RGBrgb(155, 47, 79)
HSLhsl(342, 54%, 40%)
CMYKcmyk(0%, 70%, 49%, 39%)
LABlab(37.1 47.1 6.3)
LCHlch(37.1 47.5 7.7)
OKLCHoklch(0.476 0.144 6.6)
Decimal10170191
Display P3color(display-p3 0.608 0.184 0.310)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9b2f4f on white: 7.21:1
AA ✓ pass · AA-large · AAA
Aa
#9b2f4f on black: 2.91:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #474A50
deuteranopia · #645F4C
tritanopia · #A91D3C

Color scale — 50 to 950

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

#FBF4F6
#F6E9ED
#EDCED8
#E5A9BB
#D87E99
#CB5376
#BC3960
#9b2f4f
#7D2640
#5B1F31
#39131F
Base = 700Lightest = 50 · #FBF4F6Darkest = 950 · #39131F
:root {
  --brand-50: #FBF4F6;
  --brand-100: #F6E9ED;
  --brand-200: #EDCED8;
  --brand-300: #E5A9BB;
  --brand-400: #D87E99;
  --brand-500: #CB5376;
  --brand-600: #BC3960;
  --brand-700: #9b2f4f;
  --brand-800: #7D2640;
  --brand-900: #5B1F31;
  --brand-950: #39131F;
  --brand: #9b2f4f;
  --brand-ink: #ffffff;
}

Colors that work with #9b2f4f

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#FAF4F6
Tinted page background
Border#ECC0CD
Hairlines and dividers
Muted text#9B4B62
Captions on the surface
Accent#2B9F60
Second voice, not a rival
Dark variant#621E32
Hover, pressed, headers
Light variant#F9EBEF
Selected rows, tints
Dark surface#241419
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 #9b2f4f

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#2F9B7B
Analogous left#9B2F85
Analogous right#9B452F
Split-complement 1#2F9B45
Split-complement 2#2F859B
Triadic 1#4F9B2F
Triadic 2#2F4F9B
Tetradic#859B2F

RGB percentages

Red60.8%
Green18.4%
Blue31.0%

CMYK percentages

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

Color previews

#9b2f4f text on a black background

contrast 2.91:1

Card sample

#9b2f4f text on a white background

contrast 7.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9b2f4f

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.

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

#9b2f4f, answered

What color is #9b2f4f?

#9b2f4f is a dark vivid magenta / pink, closest to Brown (ΔE2000 12.8). It sits at 342° on the hue wheel with 54% saturation and 40% lightness, which reads as warm.

What is the RGB value of #9b2f4f?

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

Is #9b2f4f a light or a dark color?

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

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

White. It scores 7.21:1 against #9b2f4f, versus 2.91:1 for black — AAA at any size.

What is the complementary color of #9b2f4f?

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

What colors go well with #9b2f4f?

For interface work: #FAF4F6 as the surface, #ECC0CD for borders, #9B4B62 for secondary text, #2B9F60 as an accent and #621E32 for hover and pressed states. For a palette, the analogous pair #9B2F85 and #9B452F stays calm, while #2F9B7B is the loudest partner.

What is #9b2f4f in CMYK for printing?

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

Is #9b2f4f warm or cool?

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

Work with #9b2f4f in the Color Lab