#5B1139#5B1139

#5B1139 is a dark, moderate pink. Relative luminance 0.029; OKLCH L 32.3% C 0.113 H 352.5°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#5B1139
RGBrgb(91, 17, 57)
HSLhsl(328, 69%, 21%)
HSVhsv(328, 81%, 36%)
CMYKcmyk(0%, 81.3%, 37.4%, 64.3%)
CIE-LABlab(19.73, 36.48, -5.75)
CIE-LCHlch(19.73, 36.93, 351.04°)
OKLaboklab(32.29% 0.1119 -0.0148)
OKLCHoklch(32.29% 0.113 352.5)
XYZxyz(5.2537, 2.9211, 4.1573)
Luminance0.0292 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1139 #115B33
analogous
#58115B #5B1139 #5B1114
triadic
#5B1139 #395B11 #11395B
tetradic
#5B1139 #5B5811 #115B33 #11145B
square
#5B1139 #5B5811 #115B33 #11145B
split-complementary
#5B1139 #145B11 #115B58
monochromatic
#1A0510 #270719 #5B1139 #8F1B59 #C2247A

Accessibility & contrast

On white

13.26
#5B1139 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#5B1139 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1139
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1139#FFFFFF#000000##FFFFFF
##5B11391.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F273A
Deuteranopia (green-blind)
#343537
Tritanopia (blue-blind)
#630A23
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5b1139;
/* rgb */ color: rgb(91, 17, 57);
/* oklch */ color: oklch(32.3% 0.113 352.5);
Tailwind
colors: {
  custom: {
    50: '#8d586f',
    500: '#5b1139',
    950: '#000000',
  },
}
SCSS
$custom: #5b1139;
$custom-light: #8d586f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1139",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 57
  },
  "hsl": {
    "h": 327.568,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32289,
    "c": 0.11282,
    "h": 352.5
  },
  "luminance": 0.0292
}

Semantic roles & 50–950 ramp

primary
#5B1139
secondary
#349460
accent
#EB8D3C
background
#F9F5F6
surface
#F1E9EC
border
#CBC5C7
text
#0D0407
muted
#7E797A

Preview Lab

Preview with #5B1139

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#5B1139 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva