Skip to content

#5b0121

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

RGB
91, 1, 33
HSL
339°, 98%, 18%
CMYK
0, 99, 64, 64
Luminance
0.0236

At a glance

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

Hex
#5b0121
Hue
339°
magenta / pink
Saturation
98%
electric
Lightness
18%
deep
Brightness
36%
HSV value
Perceived
20%
weighted brightness
Luminance
0.0236
WCAG relative
Temperature
Warm
28/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
14.27:1
Closest name
Maroon
ΔE2000 16.4
Where it sits
Hue339° of 360°
Saturation98%
Lightness18%
Temperature
Warm ← → Cool28% 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#5b0121
RGBrgb(91, 1, 33)
HSLhsl(339, 98%, 18%)
CMYKcmyk(0%, 99%, 64%, 64%)
LABlab(17.3 38.9 7.8)
LCHlch(17.3 39.6 11.4)
OKLCHoklch(0.302 0.120 9.4)
Decimal5964065
Display P3color(display-p3 0.357 0.004 0.129)

Copy-ready code

/* CSS */
color: #5b0121;
background-color: #5b0121;
/* Tailwind (arbitrary) */
class="text-[#5b0121] bg-[#5b0121]"
/* SCSS */
$brand: #5b0121;
/* SwiftUI */
Color(red: 0.357, green: 0.004, blue: 0.129)
/* Android */
Color.parseColor("#5b0121")
/* Flutter */
Color(0xFF5B0121)
/* Python / OpenCV (BGR) */
(33, 1, 91)

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

Accessibility — WCAG contrast

Aa
#5b0121 on white: 14.27:1
AA ✓ pass · AA-large · AAA
Aa
#5b0121 on black: 1.47:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #1E1F21
deuteranopia · #35311F
tritanopia · #640010

Color scale — 50 to 950

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

#FDF1F6
#FCE3EC
#FBC1D5
#FE90B7
#FD5993
#FD216F
#F20358
#CA0249
#A1023A
#74062D
#5b0121
Base = 950Lightest = 50 · #FDF1F6Darkest = 950 · #5b0121
:root {
  --brand-50: #FDF1F6;
  --brand-100: #FCE3EC;
  --brand-200: #FBC1D5;
  --brand-300: #FE90B7;
  --brand-400: #FD5993;
  --brand-500: #FD216F;
  --brand-600: #F20358;
  --brand-700: #CA0249;
  --brand-800: #A1023A;
  --brand-900: #74062D;
  --brand-950: #5b0121;
  --brand: #5b0121;
  --brand-ink: #ffffff;
}

Colors that work with #5b0121

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#EDC0D0
Hairlines and dividers
Muted text#9B4B67
Captions on the surface
Accent#005C24
Second voice, not a rival
Dark variant#7E012E
Hover, pressed, headers
Light variant#FFE6EF
Selected rows, tints
Dark surface#24141A
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 #5b0121

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#015B3B
Analogous left#5B014E
Analogous right#5B0E01
Split-complement 1#015B0E
Split-complement 2#014E5B
Triadic 1#215B01
Triadic 2#01215B
Tetradic#4E5B01

RGB percentages

Red35.7%
Green0.4%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta98.9%
Yellow63.7%
Key (black)64.3%

Color previews

#5b0121 text on a black background

contrast 1.47:1

Card sample

#5b0121 text on a white background

contrast 14.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5b0121

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.

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

#5b0121, answered

What color is #5b0121?

#5b0121 is a deep electric magenta / pink, closest to Maroon (ΔE2000 16.4). It sits at 339° on the hue wheel with 98% saturation and 18% lightness, which reads as warm.

What is the RGB value of #5b0121?

rgb(91, 1, 33) — 91 red, 1 green and 33 blue out of 255, or 35.7% / 0.4% / 12.9% by channel.

Is #5b0121 a light or a dark color?

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

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

White. It scores 14.27:1 against #5b0121, versus 1.47:1 for black — AAA at any size.

What is the complementary color of #5b0121?

#015B3B sits directly opposite on the wheel. Softer options are the split-complements #015B0E and #014E5B, which give the same contrast with far less vibration.

What colors go well with #5b0121?

For interface work: #FAF4F6 as the surface, #EDC0D0 for borders, #9B4B67 for secondary text, #005C24 as an accent and #7E012E for hover and pressed states. For a palette, the analogous pair #5B014E and #5B0E01 stays calm, while #015B3B is the loudest partner.

What is #5b0121 in CMYK for printing?

cmyk(0%, 99%, 64%, 64%). 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 #5b0121 warm or cool?

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

Work with #5b0121 in the Color Lab