#5B1A4E#5B1A4E

#5B1A4E is a dark, moderate pink. Relative luminance 0.035; OKLCH L 34.3% C 0.115 H 336.7°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#5B1A4E
RGBrgb(91, 26, 78)
HSLhsl(312, 56%, 23%)
HSVhsv(312, 71%, 36%)
CMYKcmyk(0%, 71.4%, 14.3%, 64.3%)
CIE-LABlab(21.99, 35.97, -16.72)
CIE-LCHlch(21.99, 39.67, 335.08°)
OKLaboklab(34.26% 0.1056 -0.0454)
OKLCHoklch(34.26% 0.115 336.7)
XYZxyz(6.0590, 3.5135, 7.5653)
Luminance0.0351 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1A4E #1A5B27
analogous
#471A5B #5B1A4E #5B1A2D
triadic
#5B1A4E #4E5B1A #1A4E5B
tetradic
#5B1A4E #5B471A #1A5B27 #1A2D5B
square
#5B1A4E #5B471A #1A5B27 #1A2D5B
split-complementary
#5B1A4E #2D5B1A #1A5B47
monochromatic
#180714 #2B0C25 #5B1A4E #8B2877 #BA35A0

Accessibility & contrast

On white

12.33
#5B1A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5B1A4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1A4E
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1A4E#FFFFFF#000000##FFFFFF
##5B1A4E1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b1a4e;
/* rgb */ color: rgb(91, 26, 78);
/* oklch */ color: oklch(34.3% 0.115 336.7);
Tailwind
colors: {
  custom: {
    50: '#8c5c7f',
    500: '#5b1a4e',
    950: '#000000',
  },
}
SCSS
$custom: #5b1a4e;
$custom-light: #8c5c7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1a4e",
  "rgb": {
    "r": 91,
    "g": 26,
    "b": 78
  },
  "hsl": {
    "h": 312,
    "s": 55.556,
    "l": 22.941
  },
  "oklch": {
    "l": 0.34261,
    "c": 0.1149,
    "h": 336.7
  },
  "luminance": 0.03513
}

Semantic roles & 50–950 ramp

primary
#5B1A4E
secondary
#409150
accent
#DF6749
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B1A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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