Skip to content

#4f334f

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

RGB
79, 51, 79
HSL
300°, 22%, 26%
CMYK
0, 35, 0, 69
Luminance
0.0459

At a glance

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

Hex
#4f334f
Hue
300°
magenta / pink
Saturation
22%
soft
Lightness
26%
dark
Brightness
31%
HSV value
Perceived
25%
weighted brightness
Luminance
0.0459
WCAG relative
Temperature
Neutral
50/100 cool
Color family
Magenta / pink
Tone
Soft
Best ink
White
10.94:1
Closest name
Dark Slate Blue
ΔE2000 15.5
Where it sits
Hue300° of 360°
Saturation22%
Lightness26%
Temperature
Warm ← → Cool50% 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#4f334f
RGBrgb(79, 51, 79)
HSLhsl(300, 22%, 26%)
CMYKcmyk(0%, 35%, 0%, 69%)
LABlab(25.6 18.0 -12.1)
LCHlch(25.6 21.6 326.2)
OKLCHoklch(0.365 0.059 326.7)
Decimal5190479
Display P3color(display-p3 0.310 0.200 0.310)

Copy-ready code

/* CSS */
color: #4f334f;
background-color: #4f334f;
/* Tailwind (arbitrary) */
class="text-[#4f334f] bg-[#4f334f]"
/* SCSS */
$brand: #4f334f;
/* SwiftUI */
Color(red: 0.310, green: 0.200, blue: 0.310)
/* Android */
Color.parseColor("#4f334f")
/* Flutter */
Color(0xFF4F334F)
/* Python / OpenCV (BGR) */
(79, 51, 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 #4f334f · 10.94:1
Use #ffffffAAA at every size.
Aa
White text · 10.94: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: #4f334f as text scores 10.94:1 on white and 1.92:1 on black.

Accessibility — WCAG contrast

Aa
#4f334f on white: 10.94:1
AA ✓ pass · AA-large · AAA
Aa
#4f334f on black: 1.92:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #313A50
deuteranopia · #383E4E
tritanopia · #51353D

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #4f334f 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
#F2EDF2
#E4D8E4
#D3BBD3
#BD99BD
#A777A7
#956095
#7C507C
#634063
#4f334f
#2E1F2E
Base = 900Lightest = 50 · #F9F6F9Darkest = 950 · #2E1F2E
:root {
  --brand-50: #F9F6F9;
  --brand-100: #F2EDF2;
  --brand-200: #E4D8E4;
  --brand-300: #D3BBD3;
  --brand-400: #BD99BD;
  --brand-500: #A777A7;
  --brand-600: #956095;
  --brand-700: #7C507C;
  --brand-800: #634063;
  --brand-900: #4f334f;
  --brand-950: #2E1F2E;
  --brand: #4f334f;
  --brand-ink: #ffffff;
}

Colors that work with #4f334f

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#F9F6F9
Tinted page background
Border#DFCDDF
Hairlines and dividers
Muted text#8B5A8B
Captions on the surface
Accent#395230
Second voice, not a rival
Dark variant#4D324D
Hover, pressed, headers
Light variant#F5F0F5
Selected rows, tints
Dark surface#221622
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 #4f334f

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#334F33
Analogous left#41334F
Analogous right#4F3341
Split-complement 1#414F33
Split-complement 2#334F41
Triadic 1#4F4F33
Triadic 2#334F4F
Tetradic#4F4133

RGB percentages

Red31.0%
Green20.0%
Blue31.0%

CMYK percentages

Cyan0.0%
Magenta35.4%
Yellow0.0%
Key (black)69.0%

Color previews

#4f334f text on a black background

contrast 1.92:1

Card sample

#4f334f text on a white background

contrast 10.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4f334f

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.

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

#4f334f, answered

What color is #4f334f?

#4f334f is a dark soft magenta / pink, closest to Dark Slate Blue (ΔE2000 15.5). It sits at 300° on the hue wheel with 22% saturation and 26% lightness, which reads as neutral.

What is the RGB value of #4f334f?

rgb(79, 51, 79) — 79 red, 51 green and 79 blue out of 255, or 31% / 20% / 31% by channel.

Is #4f334f a light or a dark color?

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

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

White. It scores 10.94:1 against #4f334f, versus 1.92:1 for black — AAA at any size.

What is the complementary color of #4f334f?

#334F33 sits directly opposite on the wheel. Softer options are the split-complements #414F33 and #334F41, which give the same contrast with far less vibration.

What colors go well with #4f334f?

For interface work: #F9F6F9 as the surface, #DFCDDF for borders, #8B5A8B for secondary text, #395230 as an accent and #4D324D for hover and pressed states. For a palette, the analogous pair #41334F and #4F3341 stays calm, while #334F33 is the loudest partner.

What is #4f334f in CMYK for printing?

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

Is #4f334f warm or cool?

Neutral — it scores 50 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #4F3345; nudged cooler, #453250.

Work with #4f334f in the Color Lab