Skip to content

#5b2f3f

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

RGB
91, 47, 63
HSL
338°, 32%, 27%
CMYK
0, 48, 31, 64
Luminance
0.0462

At a glance

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

Hex
#5b2f3f
Hue
338°
magenta / pink
Saturation
32%
soft
Lightness
27%
dark
Brightness
36%
HSV value
Perceived
25%
weighted brightness
Luminance
0.0462
WCAG relative
Temperature
Warm
31/100 cool
Color family
Magenta / pink
Tone
Soft
Best ink
White
10.92:1
Closest name
Purple
ΔE2000 18.5
Where it sits
Hue338° of 360°
Saturation32%
Lightness27%
Temperature
Warm ← → Cool31% 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#5b2f3f
RGBrgb(91, 47, 63)
HSLhsl(338, 32%, 27%)
CMYKcmyk(0%, 48%, 31%, 64%)
LABlab(25.6 22.2 -1.1)
LCHlch(25.6 22.2 357.1)
OKLCHoklch(0.367 0.067 357.8)
Decimal5975871
Display P3color(display-p3 0.357 0.184 0.247)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5b2f3f on white: 10.92:1
AA ✓ pass · AA-large · AAA
Aa
#5b2f3f on black: 1.92:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #353840
deuteranopia · #40403E
tritanopia · #612C35

Color scale — 50 to 950

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

#F9F5F7
#F4ECEF
#E7D5DB
#D9B5C2
#C690A4
#B36B85
#A15370
#87455D
#6C384A
#5b2f3f
#311B23
Base = 900Lightest = 50 · #F9F5F7Darkest = 950 · #311B23
:root {
  --brand-50: #F9F5F7;
  --brand-100: #F4ECEF;
  --brand-200: #E7D5DB;
  --brand-300: #D9B5C2;
  --brand-400: #C690A4;
  --brand-500: #B36B85;
  --brand-600: #A15370;
  --brand-700: #87455D;
  --brand-800: #6C384A;
  --brand-900: #5b2f3f;
  --brand-950: #311B23;
  --brand: #5b2f3f;
  --brand-ink: #ffffff;
}

Colors that work with #5b2f3f

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#FAF5F7
Tinted page background
Border#E3C9D3
Hairlines and dividers
Muted text#974E69
Captions on the surface
Accent#2C5E3F
Second voice, not a rival
Dark variant#542B3A
Hover, pressed, headers
Light variant#F6EEF1
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 #5b2f3f

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Charts, tags and secondary surfaces
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • 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#2F5B4B
Analogous left#5B2F55
Analogous right#5B352F
Split-complement 1#2F5B35
Split-complement 2#2F555B
Triadic 1#3F5B2F
Triadic 2#2F3F5B
Tetradic#555B2F

RGB percentages

Red35.7%
Green18.4%
Blue24.7%

CMYK percentages

Cyan0.0%
Magenta48.4%
Yellow30.8%
Key (black)64.3%

Color previews

#5b2f3f text on a black background

contrast 1.92:1

Card sample

#5b2f3f text on a white background

contrast 10.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5b2f3f

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.

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

#5b2f3f, answered

What color is #5b2f3f?

#5b2f3f is a dark soft magenta / pink, closest to Purple (ΔE2000 18.5). It sits at 338° on the hue wheel with 32% saturation and 27% lightness, which reads as warm.

What is the RGB value of #5b2f3f?

rgb(91, 47, 63) — 91 red, 47 green and 63 blue out of 255, or 35.7% / 18.4% / 24.7% by channel.

Is #5b2f3f a light or a dark color?

It is a dark color. Relative luminance is 0.0462 and perceived brightness is 25%, so white text on it reaches 10.92:1.

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

White. It scores 10.92:1 against #5b2f3f, versus 1.92:1 for black — AAA at any size.

What is the complementary color of #5b2f3f?

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

What colors go well with #5b2f3f?

For interface work: #FAF5F7 as the surface, #E3C9D3 for borders, #974E69 for secondary text, #2C5E3F as an accent and #542B3A for hover and pressed states. For a palette, the analogous pair #5B2F55 and #5B352F stays calm, while #2F5B4B is the loudest partner.

What is #5b2f3f in CMYK for printing?

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

Is #5b2f3f warm or cool?

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

Work with #5b2f3f in the Color Lab