Skip to content

#5f024f

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

RGB
95, 2, 79
HSL
310°, 96%, 19%
CMYK
0, 98, 17, 63
Luminance
0.0304

At a glance

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

Hex
#5f024f
Hue
310°
magenta / pink
Saturation
96%
electric
Lightness
19%
deep
Brightness
37%
HSV value
Perceived
23%
weighted brightness
Luminance
0.0304
WCAG relative
Temperature
Neutral
44/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
13.06:1
Closest name
Purple
ΔE2000 9.6
Where it sits
Hue310° of 360°
Saturation96%
Lightness19%
Temperature
Warm ← → Cool44% 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#5f024f
RGBrgb(95, 2, 79)
HSLhsl(310, 96%, 19%)
CMYKcmyk(0%, 98%, 17%, 63%)
LABlab(20.2 44.7 -20.1)
LCHlch(20.2 49.0 335.7)
OKLCHoklch(0.331 0.143 337.5)
Decimal6226511
Display P3color(display-p3 0.373 0.008 0.310)

Copy-ready code

/* CSS */
color: #5f024f;
background-color: #5f024f;
/* Tailwind (arbitrary) */
class="text-[#5f024f] bg-[#5f024f]"
/* SCSS */
$brand: #5f024f;
/* SwiftUI */
Color(red: 0.373, green: 0.008, blue: 0.310)
/* Android */
Color.parseColor("#5f024f")
/* Flutter */
Color(0xFF5F024F)
/* Python / OpenCV (BGR) */
(79, 2, 95)

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

Accessibility — WCAG contrast

Aa
#5f024f on white: 13.06:1
AA ✓ pass · AA-large · AAA
Aa
#5f024f on black: 1.61:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #072851
deuteranopia · #2C354D
tritanopia · #650A2C

Color scale — 50 to 950

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

#FDF1FB
#FCE4F8
#FAC1F1
#FD91EA
#FC5AE0
#FA23D5
#F005C7
#C804A6
#A00385
#730761
#5f024f
Base = 950Lightest = 50 · #FDF1FBDarkest = 950 · #5f024f
:root {
  --brand-50: #FDF1FB;
  --brand-100: #FCE4F8;
  --brand-200: #FAC1F1;
  --brand-300: #FD91EA;
  --brand-400: #FC5AE0;
  --brand-500: #FA23D5;
  --brand-600: #F005C7;
  --brand-700: #C804A6;
  --brand-800: #A00385;
  --brand-900: #730761;
  --brand-950: #5f024f;
  --brand: #5f024f;
  --brand-ink: #ffffff;
}

Colors that work with #5f024f

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#FAF4F9
Tinted page background
Border#EDC0E5
Hairlines and dividers
Muted text#9B4B8D
Captions on the surface
Accent#086100
Second voice, not a rival
Dark variant#7D0368
Hover, pressed, headers
Light variant#FEE6FA
Selected rows, tints
Dark surface#241422
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 #5f024f

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#025F12
Analogous left#40025F
Analogous right#5F0220
Split-complement 1#205F02
Split-complement 2#025F40
Triadic 1#4F5F02
Triadic 2#024F5F
Tetradic#5F4002

RGB percentages

Red37.3%
Green0.8%
Blue31.0%

CMYK percentages

Cyan0.0%
Magenta97.9%
Yellow16.8%
Key (black)62.7%

Color previews

#5f024f text on a black background

contrast 1.61:1

Card sample

#5f024f text on a white background

contrast 13.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5f024f

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.

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

#5f024f, answered

What color is #5f024f?

#5f024f is a deep electric magenta / pink, closest to Purple (ΔE2000 9.6). It sits at 310° on the hue wheel with 96% saturation and 19% lightness, which reads as neutral.

What is the RGB value of #5f024f?

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

Is #5f024f a light or a dark color?

It is a dark color. Relative luminance is 0.0304 and perceived brightness is 23%, so white text on it reaches 13.06:1.

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

White. It scores 13.06:1 against #5f024f, versus 1.61:1 for black — AAA at any size.

What is the complementary color of #5f024f?

#025F12 sits directly opposite on the wheel. Softer options are the split-complements #205F02 and #025F40, which give the same contrast with far less vibration.

What colors go well with #5f024f?

For interface work: #FAF4F9 as the surface, #EDC0E5 for borders, #9B4B8D for secondary text, #086100 as an accent and #7D0368 for hover and pressed states. For a palette, the analogous pair #40025F and #5F0220 stays calm, while #025F12 is the loudest partner.

What is #5f024f in CMYK for printing?

cmyk(0%, 98%, 17%, 63%). 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 #5f024f warm or cool?

Neutral — it scores 44 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #5F022D; nudged cooler, #4D0160.

Work with #5f024f in the Color Lab