#5B1140#5B1140

#5B1140 is a dark, moderate pink. Relative luminance 0.030; OKLCH L 32.6% C 0.117 H 346.7°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#5B1140
RGBrgb(91, 17, 64)
HSLhsl(322, 69%, 21%)
HSVhsv(322, 81%, 36%)
CMYKcmyk(0%, 81.3%, 29.7%, 64.3%)
CIE-LABlab(20.03, 37.41, -10.17)
CIE-LCHlch(20.03, 38.76, 344.79°)
OKLaboklab(32.61% 0.1138 -0.0269)
OKLCHoklch(32.61% 0.117 346.7)
XYZxyz(5.4405, 2.9958, 5.1412)
Luminance0.0300 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1140 #115B2C
analogous
#51115B #5B1140 #5B111B
triadic
#5B1140 #405B11 #11405B
tetradic
#5B1140 #5B5111 #115B2C #111B5B
square
#5B1140 #5B5111 #115B2C #111B5B
split-complementary
#5B1140 #1B5B11 #115B51
monochromatic
#1A0512 #27071C #5B1140 #8F1B64 #C22489

Accessibility & contrast

On white

13.13
#5B1140 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#5B1140 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1140
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1140#FFFFFF#000000##FFFFFF
##5B11401.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2841
Deuteranopia (green-blind)
#32353E
Tritanopia (blue-blind)
#620F27
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5b1140;
/* rgb */ color: rgb(91, 17, 64);
/* oklch */ color: oklch(32.6% 0.117 346.7);
Tailwind
colors: {
  custom: {
    50: '#8d5874',
    500: '#5b1140',
    950: '#000000',
  },
}
SCSS
$custom: #5b1140;
$custom-light: #8d5874;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1140",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 64
  },
  "hsl": {
    "h": 321.892,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32608,
    "c": 0.1169,
    "h": 346.7
  },
  "luminance": 0.02995
}

Semantic roles & 50–950 ramp

primary
#5B1140
secondary
#349457
accent
#EB7C3C
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0D0408
muted
#7D797B

Preview Lab

Preview with #5B1140

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

Preview Lab → · Contrast checker → · Palette generator →

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