#5B1540#5B1540

#5B1540 is a dark, moderate pink. Relative luminance 0.031; OKLCH L 33.0% C 0.112 H 347.3°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#5B1540
RGBrgb(91, 21, 64)
HSLhsl(323, 63%, 22%)
HSVhsv(323, 77%, 36%)
CMYKcmyk(0%, 76.9%, 29.7%, 64.3%)
CIE-LABlab(20.56, 35.90, -9.36)
CIE-LCHlch(20.56, 37.10, 345.39°)
OKLaboklab(33% 0.1091 -0.0247)
OKLCHoklch(33% 0.112 347.3)
XYZxyz(5.5082, 3.1312, 5.1638)
Luminance0.0313 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1540 #155B30
analogous
#53155B #5B1540 #5B151D
triadic
#5B1540 #405B15 #15405B
tetradic
#5B1540 #5B5315 #155B30 #151D5B
square
#5B1540 #5B5315 #155B30 #151D5B
split-complementary
#5B1540 #1D5B15 #155B53
monochromatic
#190611 #290A1D #5B1540 #8D2063 #BE2C86

Accessibility & contrast

On white

12.91
#5B1540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#5B1540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1540
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1540#FFFFFF#000000##FFFFFF
##5B15401.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2A41
Deuteranopia (green-blind)
#33363E
Tritanopia (blue-blind)
#621328
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b1540;
/* rgb */ color: rgb(91, 21, 64);
/* oklch */ color: oklch(33.0% 0.112 347.3);
Tailwind
colors: {
  custom: {
    50: '#8c5974',
    500: '#5b1540',
    950: '#000000',
  },
}
SCSS
$custom: #5b1540;
$custom-light: #8c5974;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1540",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 64
  },
  "hsl": {
    "h": 323.143,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32997,
    "c": 0.11183,
    "h": 347.3
  },
  "luminance": 0.03131
}

Semantic roles & 50–950 ramp

primary
#5B1540
secondary
#39925C
accent
#E68142
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0408
muted
#7D797B

Preview Lab

Preview with #5B1540

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

Preview Lab → · Contrast checker → · Palette generator →

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