#5B1440#5B1440

#5B1440 is a dark, moderate pink. Relative luminance 0.031; OKLCH L 32.9% C 0.113 H 347.1°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#5B1440
RGBrgb(91, 20, 64)
HSLhsl(323, 64%, 22%)
HSVhsv(323, 78%, 36%)
CMYKcmyk(0%, 78%, 29.7%, 64.3%)
CIE-LABlab(20.42, 36.29, -9.57)
CIE-LCHlch(20.42, 37.53, 345.23°)
OKLaboklab(32.9% 0.1103 -0.0253)
OKLCHoklch(32.9% 0.113 347.1)
XYZxyz(5.4902, 3.0952, 5.1578)
Luminance0.0309 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1440 #145B2F
analogous
#53145B #5B1440 #5B141D
triadic
#5B1440 #405B14 #14405B
tetradic
#5B1440 #5B5314 #145B2F #141D5B
square
#5B1440 #5B5314 #145B2F #141D5B
split-complementary
#5B1440 #1D5B14 #145B53
monochromatic
#190612 #29091D #5B1440 #8D1F63 #BF2A87

Accessibility & contrast

On white

12.97
#5B1440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#5B1440 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1440
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1440#FFFFFF#000000##FFFFFF
##5B14401.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2941
Deuteranopia (green-blind)
#33363E
Tritanopia (blue-blind)
#621228
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5b1440;
/* rgb */ color: rgb(91, 20, 64);
/* oklch */ color: oklch(32.9% 0.113 347.1);
Tailwind
colors: {
  custom: {
    50: '#8d5974',
    500: '#5b1440',
    950: '#000000',
  },
}
SCSS
$custom: #5b1440;
$custom-light: #8d5974;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1440",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 64
  },
  "hsl": {
    "h": 322.817,
    "s": 63.964,
    "l": 21.765
  },
  "oklch": {
    "l": 0.32895,
    "c": 0.11315,
    "h": 347.1
  },
  "luminance": 0.03095
}

Semantic roles & 50–950 ramp

primary
#5B1440
secondary
#38935B
accent
#E78041
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0408
muted
#7D797B

Preview Lab

Preview with #5B1440

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

Preview Lab → · Contrast checker → · Palette generator →

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