Skip to content

#5f0721

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

RGB
95, 7, 33
HSL
342°, 86%, 20%
CMYK
0, 93, 65, 63
Luminance
0.0269

At a glance

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

Hex
#5f0721
Hue
342°
magenta / pink
Saturation
86%
electric
Lightness
20%
deep
Brightness
37%
HSV value
Perceived
21%
weighted brightness
Luminance
0.0269
WCAG relative
Temperature
Warm
27/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
13.65:1
Closest name
Maroon
ΔE2000 14.7
Where it sits
Hue342° of 360°
Saturation86%
Lightness20%
Temperature
Warm ← → Cool27% 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#5f0721
RGBrgb(95, 7, 33)
HSLhsl(342, 86%, 20%)
CMYKcmyk(0%, 93%, 65%, 63%)
LABlab(18.8 38.3 10.1)
LCHlch(18.8 39.6 14.7)
OKLCHoklch(0.315 0.118 12.1)
Decimal6227745
Display P3color(display-p3 0.373 0.027 0.129)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5f0721 on white: 13.65:1
AA ✓ pass · AA-large · AAA
Aa
#5f0721 on black: 1.54:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #232221
deuteranopia · #39341F
tritanopia · #690013

Color scale — 50 to 950

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

#FDF2F5
#FAE5EB
#F7C5D3
#F796B3
#F3628D
#F02E67
#E4114F
#BE0E42
#980B35
#5f0721
#45081A
Base = 900Lightest = 50 · #FDF2F5Darkest = 950 · #45081A
:root {
  --brand-50: #FDF2F5;
  --brand-100: #FAE5EB;
  --brand-200: #F7C5D3;
  --brand-300: #F796B3;
  --brand-400: #F3628D;
  --brand-500: #F02E67;
  --brand-600: #E4114F;
  --brand-700: #BE0E42;
  --brand-800: #980B35;
  --brand-900: #5f0721;
  --brand-950: #45081A;
  --brand: #5f0721;
  --brand-ink: #ffffff;
}

Colors that work with #5f0721

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#FAF4F6
Tinted page background
Border#EDC0CD
Hairlines and dividers
Muted text#9B4B62
Captions on the surface
Accent#05612F
Second voice, not a rival
Dark variant#770929
Hover, pressed, headers
Light variant#FDE7EE
Selected rows, tints
Dark surface#241419
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 #5f0721

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#075F45
Analogous left#5F074D
Analogous right#5F1907
Split-complement 1#075F19
Split-complement 2#074D5F
Triadic 1#215F07
Triadic 2#07215F
Tetradic#4D5F07

RGB percentages

Red37.3%
Green2.7%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta92.6%
Yellow65.3%
Key (black)62.7%

Color previews

#5f0721 text on a black background

contrast 1.54:1

Card sample

#5f0721 text on a white background

contrast 13.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5f0721

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.

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

#5f0721, answered

What color is #5f0721?

#5f0721 is a deep electric magenta / pink, closest to Maroon (ΔE2000 14.7). It sits at 342° on the hue wheel with 86% saturation and 20% lightness, which reads as warm.

What is the RGB value of #5f0721?

rgb(95, 7, 33) — 95 red, 7 green and 33 blue out of 255, or 37.3% / 2.7% / 12.9% by channel.

Is #5f0721 a light or a dark color?

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

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

White. It scores 13.65:1 against #5f0721, versus 1.54:1 for black — AAA at any size.

What is the complementary color of #5f0721?

#075F45 sits directly opposite on the wheel. Softer options are the split-complements #075F19 and #074D5F, which give the same contrast with far less vibration.

What colors go well with #5f0721?

For interface work: #FAF4F6 as the surface, #EDC0CD for borders, #9B4B62 for secondary text, #05612F as an accent and #770929 for hover and pressed states. For a palette, the analogous pair #5F074D and #5F1907 stays calm, while #075F45 is the loudest partner.

What is #5f0721 in CMYK for printing?

cmyk(0%, 93%, 65%, 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 #5f0721 warm or cool?

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

Work with #5f0721 in the Color Lab