Skip to content

#4f024d

a deep, electric magenta / pink · neutral · closest name: Purple

RGB
79, 2, 77
HSL
302°, 95%, 16%
CMYK
0, 98, 3, 69
Luminance
0.0224

At a glance

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

Hex
#4f024d
Hue
302°
magenta / pink
Saturation
95%
electric
Lightness
16%
deep
Brightness
31%
HSV value
Perceived
20%
weighted brightness
Luminance
0.0224
WCAG relative
Temperature
Neutral
49/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
14.50:1
Closest name
Purple
ΔE2000 11.1
Where it sits
Hue302° of 360°
Saturation95%
Lightness16%
Temperature
Warm ← → Cool49% 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#4f024d
RGBrgb(79, 2, 77)
HSLhsl(302, 95%, 16%)
CMYKcmyk(0%, 98%, 3%, 69%)
LABlab(16.7 41.0 -24.5)
LCHlch(16.7 47.8 329.1)
OKLCHoklch(0.300 0.134 329.6)
Decimal5177933
Display P3color(display-p3 0.310 0.008 0.302)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4f024d on white: 14.50:1
AA ✓ pass · AA-large · AAA
Aa
#4f024d on black: 1.45:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #00234F
deuteranopia · #1D2D4B
tritanopia · #52102A

Color scale — 50 to 950

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

#FDF1FD
#FBE4FB
#FAC2F9
#FC92F9
#FB5BF7
#FA24F4
#EF06E9
#C705C2
#9F049B
#730870
#4f024d
Base = 950Lightest = 50 · #FDF1FDDarkest = 950 · #4f024d
:root {
  --brand-50: #FDF1FD;
  --brand-100: #FBE4FB;
  --brand-200: #FAC2F9;
  --brand-300: #FC92F9;
  --brand-400: #FB5BF7;
  --brand-500: #FA24F4;
  --brand-600: #EF06E9;
  --brand-700: #C705C2;
  --brand-800: #9F049B;
  --brand-900: #730870;
  --brand-950: #4f024d;
  --brand: #4f024d;
  --brand-ink: #ffffff;
}

Colors that work with #4f024d

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#FAF4FA
Tinted page background
Border#EDC0EB
Hairlines and dividers
Muted text#9B4B99
Captions on the surface
Accent#125100
Second voice, not a rival
Dark variant#7C0379
Hover, pressed, headers
Light variant#FEE6FE
Selected rows, tints
Dark surface#241424
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 #4f024d

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#024F04
Analogous left#2B024F
Analogous right#4F0226
Split-complement 1#264F02
Split-complement 2#024F2B
Triadic 1#4D4F02
Triadic 2#024D4F
Tetradic#4F2B02

RGB percentages

Red31.0%
Green0.8%
Blue30.2%

CMYK percentages

Cyan0.0%
Magenta97.5%
Yellow2.5%
Key (black)69.0%

Color previews

#4f024d text on a black background

contrast 1.45:1

Card sample

#4f024d text on a white background

contrast 14.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4f024d

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.

#4f024d 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#4f024d, answered

What color is #4f024d?

#4f024d is a deep electric magenta / pink, closest to Purple (ΔE2000 11.1). It sits at 302° on the hue wheel with 95% saturation and 16% lightness, which reads as neutral.

What is the RGB value of #4f024d?

rgb(79, 2, 77) — 79 red, 2 green and 77 blue out of 255, or 31% / 0.8% / 30.2% by channel.

Is #4f024d a light or a dark color?

It is a dark color. Relative luminance is 0.0224 and perceived brightness is 20%, so white text on it reaches 14.50:1.

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

White. It scores 14.50:1 against #4f024d, versus 1.45:1 for black — AAA at any size.

What is the complementary color of #4f024d?

#024F04 sits directly opposite on the wheel. Softer options are the split-complements #264F02 and #024F2B, which give the same contrast with far less vibration.

What colors go well with #4f024d?

For interface work: #FAF4FA as the surface, #EDC0EB for borders, #9B4B99 for secondary text, #125100 as an accent and #7C0379 for hover and pressed states. For a palette, the analogous pair #2B024F and #4F0226 stays calm, while #024F04 is the loudest partner.

What is #4f024d in CMYK for printing?

cmyk(0%, 98%, 3%, 69%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #4f024d warm or cool?

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

Work with #4f024d in the Color Lab