Skip to content

#5f2439

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

RGB
95, 36, 57
HSL
339°, 45%, 26%
CMYK
0, 62, 40, 63
Luminance
0.0399

At a glance

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

Hex
#5f2439
Hue
339°
magenta / pink
Saturation
45%
vivid
Lightness
26%
dark
Brightness
37%
HSV value
Perceived
24%
weighted brightness
Luminance
0.0399
WCAG relative
Temperature
Warm
29/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
11.68:1
Closest name
Purple
ΔE2000 17.9
Where it sits
Hue339° of 360°
Saturation45%
Lightness26%
Temperature
Warm ← → Cool29% 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#5f2439
RGBrgb(95, 36, 57)
HSLhsl(339, 45%, 26%)
CMYKcmyk(0%, 62%, 40%, 63%)
LABlab(23.6 29.2 0.1)
LCHlch(23.6 29.2 0.3)
OKLCHoklch(0.353 0.089 0.5)
Decimal6235193
Display P3color(display-p3 0.373 0.141 0.224)

Copy-ready code

/* CSS */
color: #5f2439;
background-color: #5f2439;
/* Tailwind (arbitrary) */
class="text-[#5f2439] bg-[#5f2439]"
/* SCSS */
$brand: #5f2439;
/* SwiftUI */
Color(red: 0.373, green: 0.141, blue: 0.224)
/* Android */
Color.parseColor("#5f2439")
/* Flutter */
Color(0xFF5F2439)
/* Python / OpenCV (BGR) */
(57, 36, 95)

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

Accessibility — WCAG contrast

Aa
#5f2439 on white: 11.68:1
AA ✓ pass · AA-large · AAA
Aa
#5f2439 on black: 1.80:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #2E313A
deuteranopia · #3E3C38
tritanopia · #671F2C

Color scale — 50 to 950

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

#FAF5F7
#F5EAEE
#EBD1DA
#E0AEC0
#D185A0
#C15C80
#B1436B
#943859
#762D47
#5f2439
#361622
Base = 900Lightest = 50 · #FAF5F7Darkest = 950 · #361622
:root {
  --brand-50: #FAF5F7;
  --brand-100: #F5EAEE;
  --brand-200: #EBD1DA;
  --brand-300: #E0AEC0;
  --brand-400: #D185A0;
  --brand-500: #C15C80;
  --brand-600: #B1436B;
  --brand-700: #943859;
  --brand-800: #762D47;
  --brand-900: #5f2439;
  --brand-950: #361622;
  --brand: #5f2439;
  --brand-ink: #ffffff;
}

Colors that work with #5f2439

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#E9C4D1
Hairlines and dividers
Muted text#9B4B67
Captions on the surface
Accent#21623B
Second voice, not a rival
Dark variant#5C2338
Hover, pressed, headers
Light variant#F8EDF1
Selected rows, tints
Dark surface#24141A
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 #5f2439

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#245F4A
Analogous left#5F2457
Analogous right#5F2C24
Split-complement 1#245F2C
Split-complement 2#24575F
Triadic 1#395F24
Triadic 2#24395F
Tetradic#575F24

RGB percentages

Red37.3%
Green14.1%
Blue22.4%

CMYK percentages

Cyan0.0%
Magenta62.1%
Yellow40.0%
Key (black)62.7%

Color previews

#5f2439 text on a black background

contrast 1.80:1

Card sample

#5f2439 text on a white background

contrast 11.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #5f2439;
Background color
Panel with #5f2439 background
background-color: #5f2439;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(95, 36, 57, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(95, 36, 57, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5f2439;
background: linear-gradient(135deg, #5f2439, #5F3624);

Monochromatic scale

Palettes built from #5f2439

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.

#5f2439 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.

#5f2439, answered

What color is #5f2439?

#5f2439 is a dark vivid magenta / pink, closest to Purple (ΔE2000 17.9). It sits at 339° on the hue wheel with 45% saturation and 26% lightness, which reads as warm.

What is the RGB value of #5f2439?

rgb(95, 36, 57) — 95 red, 36 green and 57 blue out of 255, or 37.3% / 14.1% / 22.4% by channel.

Is #5f2439 a light or a dark color?

It is a dark color. Relative luminance is 0.0399 and perceived brightness is 24%, so white text on it reaches 11.68:1.

Should I use black or white text on #5f2439?

White. It scores 11.68:1 against #5f2439, versus 1.80:1 for black — AAA at any size.

What is the complementary color of #5f2439?

#245F4A sits directly opposite on the wheel. Softer options are the split-complements #245F2C and #24575F, which give the same contrast with far less vibration.

What colors go well with #5f2439?

For interface work: #FAF4F6 as the surface, #E9C4D1 for borders, #9B4B67 for secondary text, #21623B as an accent and #5C2338 for hover and pressed states. For a palette, the analogous pair #5F2457 and #5F2C24 stays calm, while #245F4A is the loudest partner.

What is #5f2439 in CMYK for printing?

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

Is #5f2439 warm or cool?

Warm — it scores 29 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #5F2524; nudged cooler, #60234F.

Work with #5f2439 in the Color Lab