#5B1B4E#5B1B4E

#5B1B4E is a dark, moderate pink. Relative luminance 0.036; OKLCH L 34.4% C 0.113 H 336.8°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#5B1B4E
RGBrgb(91, 27, 78)
HSLhsl(312, 54%, 23%)
HSVhsv(312, 70%, 36%)
CMYKcmyk(0%, 70.3%, 14.3%, 64.3%)
CIE-LABlab(22.16, 35.52, -16.46)
CIE-LCHlch(22.16, 39.15, 335.13°)
OKLaboklab(34.38% 0.1042 -0.0447)
OKLCHoklch(34.38% 0.113 336.8)
XYZxyz(6.0816, 3.5586, 7.5728)
Luminance0.0356 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1B4E #1B5B28
analogous
#481B5B #5B1B4E #5B1B2E
triadic
#5B1B4E #4E5B1B #1B4E5B
tetradic
#5B1B4E #5B481B #1B5B28 #1B2E5B
square
#5B1B4E #5B481B #1B5B28 #1B2E5B
split-complementary
#5B1B4E #2E5B1B #1B5B48
monochromatic
#180714 #2C0D26 #5B1B4E #8A2976 #B9379F

Accessibility & contrast

On white

12.27
#5B1B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5B1B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1B4E
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1B4E#FFFFFF#000000##FFFFFF
##5B1B4E1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2F50
Deuteranopia (green-blind)
#31394C
Tritanopia (blue-blind)
#601E31
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b1b4e;
/* rgb */ color: rgb(91, 27, 78);
/* oklch */ color: oklch(34.4% 0.113 336.8);
Tailwind
colors: {
  custom: {
    50: '#8c5d7f',
    500: '#5b1b4e',
    950: '#000000',
  },
}
SCSS
$custom: #5b1b4e;
$custom-light: #8c5d7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1b4e",
  "rgb": {
    "r": 91,
    "g": 27,
    "b": 78
  },
  "hsl": {
    "h": 312.188,
    "s": 54.237,
    "l": 23.137
  },
  "oklch": {
    "l": 0.34379,
    "c": 0.11339,
    "h": 336.8
  },
  "luminance": 0.03558
}

Semantic roles & 50–950 ramp

primary
#5B1B4E
secondary
#419151
accent
#DE684A
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B1B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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