Skip to content

#4f2f73

a dark, soft violet · cool · closest name: Dark Slate Blue

RGB
79, 47, 115
HSL
268°, 42%, 32%
CMYK
31, 59, 0, 55
Luminance
0.0493

At a glance

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

Hex
#4f2f73
Hue
268°
violet
Saturation
42%
soft
Lightness
32%
dark
Brightness
45%
HSV value
Perceived
27%
weighted brightness
Luminance
0.0493
WCAG relative
Temperature
Cool
68/100 cool
Color family
Violet
Tone
Soft
Best ink
White
10.57:1
Closest name
Dark Slate Blue
ΔE2000 6.7
Where it sits
Hue268° of 360°
Saturation42%
Lightness32%
Temperature
Warm ← → Cool68% cool

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

Every format

HEX#4f2f73
RGBrgb(79, 47, 115)
HSLhsl(268, 42%, 32%)
CMYKcmyk(31%, 59%, 0%, 55%)
LABlab(26.5 29.5 -33.9)
LCHlch(26.5 44.9 311.0)
OKLCHoklch(0.379 0.114 303.1)
Decimal5189491
Display P3color(display-p3 0.310 0.184 0.451)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4f2f73 on white: 10.57:1
AA ✓ pass · AA-large · AAA
Aa
#4f2f73 on black: 1.99:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #133E75
deuteranopia · #203F71
tritanopia · #483C4C

Color scale — 50 to 950

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

#F7F5FA
#EFEBF5
#DDD2EA
#C5AFDE
#A988CE
#8C60BE
#7747AE
#633B91
#4f2f73
#3C2655
#251735
Base = 800Lightest = 50 · #F7F5FADarkest = 950 · #251735
:root {
  --brand-50: #F7F5FA;
  --brand-100: #EFEBF5;
  --brand-200: #DDD2EA;
  --brand-300: #C5AFDE;
  --brand-400: #A988CE;
  --brand-500: #8C60BE;
  --brand-600: #7747AE;
  --brand-700: #633B91;
  --brand-800: #4f2f73;
  --brand-900: #3C2655;
  --brand-950: #251735;
  --brand: #4f2f73;
  --brand-ink: #ffffff;
}

Colors that work with #4f2f73

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#F7F4FA
Tinted page background
Border#D5C5E7
Hairlines and dividers
Muted text#704B9B
Captions on the surface
Accent#66762C
Second voice, not a rival
Dark variant#3E255B
Hover, pressed, headers
Light variant#F2EDF8
Selected rows, tints
Dark surface#1C1424
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 #4f2f73

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#53732F
Analogous left#2F3173
Analogous right#712F73
Split-complement 1#73712F
Split-complement 2#31732F
Triadic 1#734F2F
Triadic 2#2F734F
Tetradic#732F31

RGB percentages

Red31.0%
Green18.4%
Blue45.1%

CMYK percentages

Cyan31.3%
Magenta59.1%
Yellow0.0%
Key (black)54.9%

Color previews

#4f2f73 text on a black background

contrast 1.99:1

Card sample

#4f2f73 text on a white background

contrast 10.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4f2f73

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.

#4f2f73 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#4f2f73, answered

What color is #4f2f73?

#4f2f73 is a dark soft violet, closest to Dark Slate Blue (ΔE2000 6.7). It sits at 268° on the hue wheel with 42% saturation and 32% lightness, which reads as cool.

What is the RGB value of #4f2f73?

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

Is #4f2f73 a light or a dark color?

It is a dark color. Relative luminance is 0.0493 and perceived brightness is 27%, so white text on it reaches 10.57:1.

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

White. It scores 10.57:1 against #4f2f73, versus 1.99:1 for black — AAA at any size.

What is the complementary color of #4f2f73?

#53732F sits directly opposite on the wheel. Softer options are the split-complements #73712F and #31732F, which give the same contrast with far less vibration.

What colors go well with #4f2f73?

For interface work: #F7F4FA as the surface, #D5C5E7 for borders, #704B9B for secondary text, #66762C as an accent and #3E255B for hover and pressed states. For a palette, the analogous pair #2F3173 and #712F73 stays calm, while #53732F is the loudest partner.

What is #4f2f73 in CMYK for printing?

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

Is #4f2f73 warm or cool?

Cool — it scores 68 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #682F73; nudged cooler, #352D75.

Work with #4f2f73 in the Color Lab