Skip to content

#9b0f4f

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

RGB
155, 15, 79
HSL
333°, 82%, 33%
CMYK
0, 90, 49, 39
Luminance
0.0787

At a glance

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

Hex
#9b0f4f
Hue
333°
magenta / pink
Saturation
82%
electric
Lightness
33%
dark
Brightness
61%
HSV value
Perceived
35%
weighted brightness
Luminance
0.0787
WCAG relative
Temperature
Warm
32/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
8.16:1
Closest name
Medium Violet Red
ΔE2000 12.3
Where it sits
Hue333° of 360°
Saturation82%
Lightness33%
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#9b0f4f
RGBrgb(155, 15, 79)
HSLhsl(333, 82%, 33%)
CMYKcmyk(0%, 90%, 49%, 39%)
LABlab(33.7 56.5 1.6)
LCHlch(33.7 56.5 1.6)
OKLCHoklch(0.452 0.174 1.5)
Decimal10161999
Display P3color(display-p3 0.608 0.059 0.310)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#9b0f4f on white: 8.16:1
AA ✓ pass · AA-large · AAA
Aa
#9b0f4f on black: 2.57:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #383F50
deuteranopia · #5C584C
tritanopia · #A9002F

Color scale — 50 to 950

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

#FCF2F7
#FAE6EF
#F6C6DC
#F599C3
#F066A5
#EB3287
#DF1672
#BA125F
#9b0f4f
#6C0F39
#430924
Base = 800Lightest = 50 · #FCF2F7Darkest = 950 · #430924
:root {
  --brand-50: #FCF2F7;
  --brand-100: #FAE6EF;
  --brand-200: #F6C6DC;
  --brand-300: #F599C3;
  --brand-400: #F066A5;
  --brand-500: #EB3287;
  --brand-600: #DF1672;
  --brand-700: #BA125F;
  --brand-800: #9b0f4f;
  --brand-900: #6C0F39;
  --brand-950: #430924;
  --brand: #9b0f4f;
  --brand-ink: #ffffff;
}

Colors that work with #9b0f4f

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#EDC0D4
Hairlines and dividers
Muted text#9B4B6F
Captions on the surface
Accent#0C9E37
Second voice, not a rival
Dark variant#740B3B
Hover, pressed, headers
Light variant#FDE8F1
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 #9b0f4f

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#0F9B5B
Analogous left#9B0F95
Analogous right#9B150F
Split-complement 1#0F9B15
Split-complement 2#0F959B
Triadic 1#4F9B0F
Triadic 2#0F4F9B
Tetradic#959B0F

RGB percentages

Red60.8%
Green5.9%
Blue31.0%

CMYK percentages

Cyan0.0%
Magenta90.3%
Yellow49.0%
Key (black)39.2%

Color previews

#9b0f4f text on a black background

contrast 2.57:1

Card sample

#9b0f4f text on a white background

contrast 8.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #9b0f4f

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.

#9b0f4f 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#9b0f4f, answered

What color is #9b0f4f?

#9b0f4f is a dark electric magenta / pink, closest to Medium Violet Red (ΔE2000 12.3). It sits at 333° on the hue wheel with 82% saturation and 33% lightness, which reads as warm.

What is the RGB value of #9b0f4f?

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

Is #9b0f4f a light or a dark color?

It is a dark color. Relative luminance is 0.0787 and perceived brightness is 35%, so white text on it reaches 8.16:1.

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

White. It scores 8.16:1 against #9b0f4f, versus 2.57:1 for black — AAA at any size.

What is the complementary color of #9b0f4f?

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

What colors go well with #9b0f4f?

For interface work: #FAF4F7 as the surface, #EDC0D4 for borders, #9B4B6F for secondary text, #0C9E37 as an accent and #740B3B for hover and pressed states. For a palette, the analogous pair #9B0F95 and #9B150F stays calm, while #0F9B5B is the loudest partner.

What is #9b0f4f in CMYK for printing?

cmyk(0%, 90%, 49%, 39%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #9b0f4f 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 #9B0F1C; nudged cooler, #9D0D83.

Work with #9b0f4f in the Color Lab