Skip to content

#5f062f

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

RGB
95, 6, 47
HSL
332°, 88%, 20%
CMYK
0, 94, 51, 63
Luminance
0.0277

At a glance

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

Hex
#5f062f
Hue
332°
magenta / pink
Saturation
88%
electric
Lightness
20%
deep
Brightness
37%
HSV value
Perceived
21%
weighted brightness
Luminance
0.0277
WCAG relative
Temperature
Warm
32/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
13.52:1
Closest name
Purple
ΔE2000 17.7
Where it sits
Hue332° of 360°
Saturation88%
Lightness20%
Temperature
Warm ← → Cool32% cool

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

Every format

HEX#5f062f
RGBrgb(95, 6, 47)
HSLhsl(332, 88%, 20%)
CMYKcmyk(0%, 94%, 51%, 63%)
LABlab(19.1 39.7 0.5)
LCHlch(19.1 39.7 0.7)
OKLCHoklch(0.319 0.122 0.8)
Decimal6227503
Display P3color(display-p3 0.373 0.024 0.184)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5f062f on white: 13.52:1
AA ✓ pass · AA-large · AAA
Aa
#5f062f on black: 1.55:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #1F2430
deuteranopia · #36342D
tritanopia · #68001A

Color scale — 50 to 950

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

#FDF2F7
#FAE5EF
#F8C4DC
#F895C3
#F561A5
#F22C87
#E60F72
#C00C5F
#990A4C
#5f062f
#450724
Base = 900Lightest = 50 · #FDF2F7Darkest = 950 · #450724
:root {
  --brand-50: #FDF2F7;
  --brand-100: #FAE5EF;
  --brand-200: #F8C4DC;
  --brand-300: #F895C3;
  --brand-400: #F561A5;
  --brand-500: #F22C87;
  --brand-600: #E60F72;
  --brand-700: #C00C5F;
  --brand-800: #990A4C;
  --brand-900: #5f062f;
  --brand-950: #450724;
  --brand: #5f062f;
  --brand-ink: #ffffff;
}

Colors that work with #5f062f

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#FAF4F7
Tinted page background
Border#EDC0D4
Hairlines and dividers
Muted text#9B4B70
Captions on the surface
Accent#04611F
Second voice, not a rival
Dark variant#78083B
Hover, pressed, headers
Light variant#FDE7F1
Selected rows, tints
Dark surface#24141B
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 #5f062f

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#065F36
Analogous left#5F065B
Analogous right#5F0A06
Split-complement 1#065F0A
Split-complement 2#065B5F
Triadic 1#2F5F06
Triadic 2#062F5F
Tetradic#5B5F06

RGB percentages

Red37.3%
Green2.4%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta93.7%
Yellow50.5%
Key (black)62.7%

Color previews

#5f062f text on a black background

contrast 1.55:1

Card sample

#5f062f text on a white background

contrast 13.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5f062f

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.

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

#5f062f, answered

What color is #5f062f?

#5f062f is a deep electric magenta / pink, closest to Purple (ΔE2000 17.7). It sits at 332° on the hue wheel with 88% saturation and 20% lightness, which reads as warm.

What is the RGB value of #5f062f?

rgb(95, 6, 47) — 95 red, 6 green and 47 blue out of 255, or 37.3% / 2.4% / 18.4% by channel.

Is #5f062f a light or a dark color?

It is a dark color. Relative luminance is 0.0277 and perceived brightness is 21%, so white text on it reaches 13.52:1.

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

White. It scores 13.52:1 against #5f062f, versus 1.55:1 for black — AAA at any size.

What is the complementary color of #5f062f?

#065F36 sits directly opposite on the wheel. Softer options are the split-complements #065F0A and #065B5F, which give the same contrast with far less vibration.

What colors go well with #5f062f?

For interface work: #FAF4F7 as the surface, #EDC0D4 for borders, #9B4B70 for secondary text, #04611F as an accent and #78083B for hover and pressed states. For a palette, the analogous pair #5F065B and #5F0A06 stays calm, while #065F36 is the loudest partner.

What is #5f062f in CMYK for printing?

cmyk(0%, 94%, 51%, 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 #5f062f warm or cool?

Warm — it scores 32 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #5F060E; nudged cooler, #600550.

Work with #5f062f in the Color Lab