Skip to content

#5b0f39

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

RGB
91, 15, 57
HSL
327°, 72%, 21%
CMYK
0, 84, 37, 64
Luminance
0.0286

At a glance

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

Hex
#5b0f39
Hue
327°
magenta / pink
Saturation
72%
vivid
Lightness
21%
deep
Brightness
36%
HSV value
Perceived
21%
weighted brightness
Luminance
0.0286
WCAG relative
Temperature
Warm
35/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
13.36:1
Closest name
Purple
ΔE2000 15.1
Where it sits
Hue327° of 360°
Saturation72%
Lightness21%
Temperature
Warm ← → Cool35% 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#5b0f39
RGBrgb(91, 15, 57)
HSLhsl(327, 72%, 21%)
CMYKcmyk(0%, 84%, 37%, 64%)
LABlab(19.5 37.2 -6.1)
LCHlch(19.5 37.7 350.7)
OKLCHoklch(0.321 0.115 352.1)
Decimal5967673
Display P3color(display-p3 0.357 0.059 0.224)

Copy-ready code

/* CSS */
color: #5b0f39;
background-color: #5b0f39;
/* Tailwind (arbitrary) */
class="text-[#5b0f39] bg-[#5b0f39]"
/* SCSS */
$brand: #5b0f39;
/* SwiftUI */
Color(red: 0.357, green: 0.059, blue: 0.224)
/* Android */
Color.parseColor("#5b0f39")
/* Flutter */
Color(0xFF5B0F39)
/* Python / OpenCV (BGR) */
(57, 15, 91)

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

Accessibility — WCAG contrast

Aa
#5b0f39 on white: 13.36:1
AA ✓ pass · AA-large · AAA
Aa
#5b0f39 on black: 1.57:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #1D263A
deuteranopia · #333437
tritanopia · #630822

Color scale — 50 to 950

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

#FCF3F8
#F8E7F1
#F3C9E0
#EF9FCB
#E76FB1
#DF3E97
#D22384
#AF1D6E
#8C1758
#5b0f39
#3F0D29
Base = 900Lightest = 50 · #FCF3F8Darkest = 950 · #3F0D29
:root {
  --brand-50: #FCF3F8;
  --brand-100: #F8E7F1;
  --brand-200: #F3C9E0;
  --brand-300: #EF9FCB;
  --brand-400: #E76FB1;
  --brand-500: #DF3E97;
  --brand-600: #D22384;
  --brand-700: #AF1D6E;
  --brand-800: #8C1758;
  --brand-900: #5b0f39;
  --brand-950: #3F0D29;
  --brand: #5b0f39;
  --brand-ink: #ffffff;
}

Colors that work with #5b0f39

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#FAF4F8
Tinted page background
Border#EDC0D9
Hairlines and dividers
Muted text#9B4B77
Captions on the surface
Accent#0D5D1D
Second voice, not a rival
Dark variant#6D1245
Hover, pressed, headers
Light variant#FBE9F3
Selected rows, tints
Dark surface#24141D
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 #5b0f39

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#0F5B31
Analogous left#570F5B
Analogous right#5B0F13
Split-complement 1#135B0F
Split-complement 2#0F5B57
Triadic 1#395B0F
Triadic 2#0F395B
Tetradic#5B570F

RGB percentages

Red35.7%
Green5.9%
Blue22.4%

CMYK percentages

Cyan0.0%
Magenta83.5%
Yellow37.4%
Key (black)64.3%

Color previews

#5b0f39 text on a black background

contrast 1.57:1

Card sample

#5b0f39 text on a white background

contrast 13.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5b0f39

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.

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

#5b0f39, answered

What color is #5b0f39?

#5b0f39 is a deep vivid magenta / pink, closest to Purple (ΔE2000 15.1). It sits at 327° on the hue wheel with 72% saturation and 21% lightness, which reads as warm.

What is the RGB value of #5b0f39?

rgb(91, 15, 57) — 91 red, 15 green and 57 blue out of 255, or 35.7% / 5.9% / 22.4% by channel.

Is #5b0f39 a light or a dark color?

It is a dark color. Relative luminance is 0.0286 and perceived brightness is 21%, so white text on it reaches 13.36:1.

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

White. It scores 13.36:1 against #5b0f39, versus 1.57:1 for black — AAA at any size.

What is the complementary color of #5b0f39?

#0F5B31 sits directly opposite on the wheel. Softer options are the split-complements #135B0F and #0F5B57, which give the same contrast with far less vibration.

What colors go well with #5b0f39?

For interface work: #FAF4F8 as the surface, #EDC0D9 for borders, #9B4B77 for secondary text, #0D5D1D as an accent and #6D1245 for hover and pressed states. For a palette, the analogous pair #570F5B and #5B0F13 stays calm, while #0F5B31 is the loudest partner.

What is #5b0f39 in CMYK for printing?

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

Is #5b0f39 warm or cool?

Warm — it scores 35 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #5B0F1D; nudged cooler, #5C0E56.

Work with #5b0f39 in the Color Lab