Skip to content

#8f2d4f

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

RGB
143, 45, 79
HSL
339°, 52%, 37%
CMYK
0, 69, 45, 44
Luminance
0.0828

At a glance

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

Hex
#8f2d4f
Hue
339°
magenta / pink
Saturation
52%
vivid
Lightness
37%
dark
Brightness
56%
HSV value
Perceived
35%
weighted brightness
Luminance
0.0828
WCAG relative
Temperature
Warm
28/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
7.91:1
Closest name
Medium Violet Red
ΔE2000 13.7
Where it sits
Hue339° of 360°
Saturation52%
Lightness37%
Temperature
Warm ← → Cool28% 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#8f2d4f
RGBrgb(143, 45, 79)
HSLhsl(339, 52%, 37%)
CMYKcmyk(0%, 69%, 45%, 44%)
LABlab(34.6 44.1 2.5)
LCHlch(34.6 44.1 3.2)
OKLCHoklch(0.453 0.135 2.9)
Decimal9383247
Display P3color(display-p3 0.561 0.176 0.310)

Copy-ready code

/* CSS */
color: #8f2d4f;
background-color: #8f2d4f;
/* Tailwind (arbitrary) */
class="text-[#8f2d4f] bg-[#8f2d4f]"
/* SCSS */
$brand: #8f2d4f;
/* SwiftUI */
Color(red: 0.561, green: 0.176, blue: 0.310)
/* Android */
Color.parseColor("#8f2d4f")
/* Flutter */
Color(0xFF8F2D4F)
/* Python / OpenCV (BGR) */
(79, 45, 143)

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 #8f2d4f · 7.91:1
Use #ffffffAAA at every size.
Aa
White text · 7.91:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.66:1
AA fail · AA large fail · AAA fail
Reading the other direction: #8f2d4f as text scores 7.91:1 on white and 2.66:1 on black.

Accessibility — WCAG contrast

Aa
#8f2d4f on white: 7.91:1
AA ✓ pass · AA-large · AAA
Aa
#8f2d4f on black: 2.66:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #414550
deuteranopia · #5B584D
tritanopia · #9B203B

Color scale — 50 to 950

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

#FAF4F6
#F6E9EE
#EDCFD9
#E4AABE
#D77F9D
#C9547D
#BA3B67
#8f2d4f
#7C2745
#5B2034
#391421
Base = 700Lightest = 50 · #FAF4F6Darkest = 950 · #391421
:root {
  --brand-50: #FAF4F6;
  --brand-100: #F6E9EE;
  --brand-200: #EDCFD9;
  --brand-300: #E4AABE;
  --brand-400: #D77F9D;
  --brand-500: #C9547D;
  --brand-600: #BA3B67;
  --brand-700: #8f2d4f;
  --brand-800: #7C2745;
  --brand-900: #5B2034;
  --brand-950: #391421;
  --brand: #8f2d4f;
  --brand-ink: #ffffff;
}

Colors that work with #8f2d4f

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#EBC1D0
Hairlines and dividers
Muted text#9B4B66
Captions on the surface
Accent#299354
Second voice, not a rival
Dark variant#611F36
Hover, pressed, headers
Light variant#F9ECF0
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 #8f2d4f

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#2D8F6D
Analogous left#8F2D80
Analogous right#8F3C2D
Split-complement 1#2D8F3C
Split-complement 2#2D808F
Triadic 1#4F8F2D
Triadic 2#2D4F8F
Tetradic#808F2D

RGB percentages

Red56.1%
Green17.6%
Blue31.0%

CMYK percentages

Cyan0.0%
Magenta68.5%
Yellow44.8%
Key (black)43.9%

Color previews

#8f2d4f text on a black background

contrast 2.66:1

Card sample

#8f2d4f text on a white background

contrast 7.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #8f2d4f;
Background color
Panel with #8f2d4f background
background-color: #8f2d4f;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(143, 45, 79, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(143, 45, 79, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8f2d4f;
background: linear-gradient(135deg, #8f2d4f, #8F4C2D);

Monochromatic scale

Palettes built from #8f2d4f

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.

#8f2d4f 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.

#8f2d4f, answered

What color is #8f2d4f?

#8f2d4f is a dark vivid magenta / pink, closest to Medium Violet Red (ΔE2000 13.7). It sits at 339° on the hue wheel with 52% saturation and 37% lightness, which reads as warm.

What is the RGB value of #8f2d4f?

rgb(143, 45, 79) — 143 red, 45 green and 79 blue out of 255, or 56.1% / 17.6% / 31% by channel.

Is #8f2d4f a light or a dark color?

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

Should I use black or white text on #8f2d4f?

White. It scores 7.91:1 against #8f2d4f, versus 2.66:1 for black — AAA at any size.

What is the complementary color of #8f2d4f?

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

What colors go well with #8f2d4f?

For interface work: #FAF4F6 as the surface, #EBC1D0 for borders, #9B4B66 for secondary text, #299354 as an accent and #611F36 for hover and pressed states. For a palette, the analogous pair #8F2D80 and #8F3C2D stays calm, while #2D8F6D is the loudest partner.

What is #8f2d4f in CMYK for printing?

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

Is #8f2d4f warm or cool?

Warm — it scores 28 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #8F2F2D; nudged cooler, #912B74.

Work with #8f2d4f in the Color Lab