Skip to content

#4f2f52

a dark, soft magenta / pink · neutral · closest name: Dark Slate Blue

RGB
79, 47, 82
HSL
295°, 27%, 25%
CMYK
4, 43, 0, 68
Luminance
0.0430

At a glance

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

Hex
#4f2f52
Hue
295°
magenta / pink
Saturation
27%
soft
Lightness
25%
dark
Brightness
32%
HSV value
Perceived
25%
weighted brightness
Luminance
0.0430
WCAG relative
Temperature
Neutral
52/100 cool
Color family
Magenta / pink
Tone
Soft
Best ink
White
11.28:1
Closest name
Dark Slate Blue
ΔE2000 14.3
Where it sits
Hue295° of 360°
Saturation27%
Lightness25%
Temperature
Warm ← → Cool52% cool

Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#4f2f52
RGBrgb(79, 47, 82)
HSLhsl(295, 27%, 25%)
CMYKcmyk(4%, 43%, 0%, 68%)
LABlab(24.6 21.2 -15.4)
LCHlch(24.6 26.2 324.0)
OKLCHoklch(0.359 0.071 323.9)
Decimal5189458
Display P3color(display-p3 0.310 0.184 0.322)

Copy-ready code

/* CSS */
color: #4f2f52;
background-color: #4f2f52;
/* Tailwind (arbitrary) */
class="text-[#4f2f52] bg-[#4f2f52]"
/* SCSS */
$brand: #4f2f52;
/* SwiftUI */
Color(red: 0.310, green: 0.184, blue: 0.322)
/* Android */
Color.parseColor("#4f2f52")
/* Flutter */
Color(0xFF4F2F52)
/* Python / OpenCV (BGR) */
(82, 47, 79)

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

Accessibility — WCAG contrast

Aa
#4f2f52 on white: 11.28:1
AA ✓ pass · AA-large · AAA
Aa
#4f2f52 on black: 1.86:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #2B3853
deuteranopia · #343C51
tritanopia · #50333C

Color scale — 50 to 950

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

#F9F6F9
#F2ECF3
#E4D6E6
#D4B8D6
#BE94C2
#A870AD
#96599C
#7D4A82
#643B68
#4f2f52
#2E1D30
Base = 900Lightest = 50 · #F9F6F9Darkest = 950 · #2E1D30
:root {
  --brand-50: #F9F6F9;
  --brand-100: #F2ECF3;
  --brand-200: #E4D6E6;
  --brand-300: #D4B8D6;
  --brand-400: #BE94C2;
  --brand-500: #A870AD;
  --brand-600: #96599C;
  --brand-700: #7D4A82;
  --brand-800: #643B68;
  --brand-900: #4f2f52;
  --brand-950: #2E1D30;
  --brand: #4f2f52;
  --brand-ink: #ffffff;
}

Colors that work with #4f2f52

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#F9F5F9
Tinted page background
Border#DFCBE1
Hairlines and dividers
Muted text#8D5492
Captions on the surface
Accent#3A552C
Second voice, not a rival
Dark variant#4E2E51
Hover, pressed, headers
Light variant#F5EFF6
Selected rows, tints
Dark surface#221424
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 #4f2f52

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#32522F
Analogous left#3E2F52
Analogous right#522F43
Split-complement 1#43522F
Split-complement 2#2F523E
Triadic 1#524F2F
Triadic 2#2F524F
Tetradic#523E2F

RGB percentages

Red31.0%
Green18.4%
Blue32.2%

CMYK percentages

Cyan3.7%
Magenta42.7%
Yellow0.0%
Key (black)67.8%

Color previews

#4f2f52 text on a black background

contrast 1.86:1

Card sample

#4f2f52 text on a white background

contrast 11.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #4f2f52;
Background color
Panel with #4f2f52 background
background-color: #4f2f52;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(79, 47, 82, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(79, 47, 82, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4f2f52;
background: linear-gradient(135deg, #4f2f52, #522F3E);

Monochromatic scale

Palettes built from #4f2f52

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.

#4f2f52 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.

#4f2f52, answered

What color is #4f2f52?

#4f2f52 is a dark soft magenta / pink, closest to Dark Slate Blue (ΔE2000 14.3). It sits at 295° on the hue wheel with 27% saturation and 25% lightness, which reads as neutral.

What is the RGB value of #4f2f52?

rgb(79, 47, 82) — 79 red, 47 green and 82 blue out of 255, or 31% / 18.4% / 32.2% by channel.

Is #4f2f52 a light or a dark color?

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

Should I use black or white text on #4f2f52?

White. It scores 11.28:1 against #4f2f52, versus 1.86:1 for black — AAA at any size.

What is the complementary color of #4f2f52?

#32522F sits directly opposite on the wheel. Softer options are the split-complements #43522F and #2F523E, which give the same contrast with far less vibration.

What colors go well with #4f2f52?

For interface work: #F9F5F9 as the surface, #DFCBE1 for borders, #8D5492 for secondary text, #3A552C as an accent and #4E2E51 for hover and pressed states. For a palette, the analogous pair #3E2F52 and #522F43 stays calm, while #32522F is the loudest partner.

What is #4f2f52 in CMYK for printing?

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

Is #4f2f52 warm or cool?

Neutral — it scores 52 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #522F48; nudged cooler, #422E53.

Work with #4f2f52 in the Color Lab