#5B1C4E#5B1C4E

#5B1C4E is a dark, moderate pink. Relative luminance 0.036; OKLCH L 34.5% C 0.112 H 336.9°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#5B1C4E
RGBrgb(91, 28, 78)
HSLhsl(312, 53%, 23%)
HSVhsv(312, 69%, 36%)
CMYKcmyk(0%, 69.2%, 14.3%, 64.3%)
CIE-LABlab(22.32, 35.06, -16.21)
CIE-LCHlch(22.32, 38.63, 335.19°)
OKLaboklab(34.5% 0.1029 -0.044)
OKLCHoklch(34.5% 0.112 336.9)
XYZxyz(6.1049, 3.6052, 7.5806)
Luminance0.0360 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1C4E #1C5B29
analogous
#481C5B #5B1C4E #5B1C2E
triadic
#5B1C4E #4E5B1C #1C4E5B
tetradic
#5B1C4E #5B481C #1C5B29 #1C2E5B
square
#5B1C4E #5B481C #1C5B29 #1C2E5B
split-complementary
#5B1C4E #2E5B1C #1C5B48
monochromatic
#170714 #2C0E26 #5B1C4E #8A2A76 #B9399E

Accessibility & contrast

On white

12.20
#5B1C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5B1C4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1C4E
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1C4E#FFFFFF#000000##FFFFFF
##5B1C4E1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b1c4e;
/* rgb */ color: rgb(91, 28, 78);
/* oklch */ color: oklch(34.5% 0.112 336.9);
Tailwind
colors: {
  custom: {
    50: '#8c5d7f',
    500: '#5b1c4e',
    950: '#000000',
  },
}
SCSS
$custom: #5b1c4e;
$custom-light: #8c5d7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1c4e",
  "rgb": {
    "r": 91,
    "g": 28,
    "b": 78
  },
  "hsl": {
    "h": 312.381,
    "s": 52.941,
    "l": 23.333
  },
  "oklch": {
    "l": 0.345,
    "c": 0.11185,
    "h": 336.9
  },
  "luminance": 0.03605
}

Semantic roles & 50–950 ramp

primary
#5B1C4E
secondary
#429052
accent
#DC694B
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B1C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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