#5B1940#5B1940

#5B1940 is a dark, moderate pink. Relative luminance 0.033; OKLCH L 33.4% C 0.106 H 347.9°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#5B1940
RGBrgb(91, 25, 64)
HSLhsl(325, 57%, 23%)
HSVhsv(325, 73%, 36%)
CMYKcmyk(0%, 72.5%, 29.7%, 64.3%)
CIE-LABlab(21.17, 34.20, -8.43)
CIE-LCHlch(21.17, 35.22, 346.15°)
OKLaboklab(33.44% 0.1038 -0.0222)
OKLCHoklch(33.44% 0.106 347.9)
XYZxyz(5.5877, 3.2902, 5.1903)
Luminance0.0329 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1940 #195B34
analogous
#55195B #5B1940 #5B191F
triadic
#5B1940 #405B19 #19405B
tetradic
#5B1940 #5B5519 #195B34 #191F5B
square
#5B1940 #5B5519 #195B34 #191F5B
split-complementary
#5B1940 #1F5B19 #195B55
monochromatic
#180711 #2B0C1E #5B1940 #8B2662 #BB3384

Accessibility & contrast

On white

12.67
#5B1940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#5B1940 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1940
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1940#FFFFFF#000000##FFFFFF
##5B19401.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222C41
Deuteranopia (green-blind)
#35373E
Tritanopia (blue-blind)
#62172A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5b1940;
/* rgb */ color: rgb(91, 25, 64);
/* oklch */ color: oklch(33.4% 0.106 347.9);
Tailwind
colors: {
  custom: {
    50: '#8c5b74',
    500: '#5b1940',
    950: '#000000',
  },
}
SCSS
$custom: #5b1940;
$custom-light: #8c5b74;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1940",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 64
  },
  "hsl": {
    "h": 324.545,
    "s": 56.897,
    "l": 22.745
  },
  "oklch": {
    "l": 0.33443,
    "c": 0.10615,
    "h": 347.9
  },
  "luminance": 0.0329
}

Semantic roles & 50–950 ramp

primary
#5B1940
secondary
#3F9160
accent
#E08648
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0408
muted
#7D797B

Preview Lab

Preview with #5B1940

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

Preview Lab → · Contrast checker → · Palette generator →

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