#5B184E#5B184E

#5B184E is a dark, moderate pink. Relative luminance 0.034; OKLCH L 34.0% C 0.118 H 336.6°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#5B184E
RGBrgb(91, 24, 78)
HSLhsl(312, 58%, 23%)
HSVhsv(312, 74%, 36%)
CMYKcmyk(0%, 73.6%, 14.3%, 64.3%)
CIE-LABlab(21.68, 36.84, -17.20)
CIE-LCHlch(21.68, 40.66, 334.97°)
OKLaboklab(34.03% 0.1081 -0.0468)
OKLCHoklch(34.03% 0.118 336.6)
XYZxyz(6.0163, 3.4280, 7.5511)
Luminance0.0343 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B184E #185B25
analogous
#47185B #5B184E #5B182C
triadic
#5B184E #4E5B18 #184E5B
tetradic
#5B184E #5B4718 #185B25 #182C5B
square
#5B184E #5B4718 #185B25 #182C5B
split-complementary
#5B184E #2C5B18 #185B47
monochromatic
#180615 #2B0B24 #5B184E #8B2578 #BC32A1

Accessibility & contrast

On white

12.46
#5B184E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#5B184E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B184E
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B184E#FFFFFF#000000##FFFFFF
##5B184E1.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192D50
Deuteranopia (green-blind)
#2F384C
Tritanopia (blue-blind)
#601C30
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5b184e;
/* rgb */ color: rgb(91, 24, 78);
/* oklch */ color: oklch(34.0% 0.118 336.6);
Tailwind
colors: {
  custom: {
    50: '#8c5b7f',
    500: '#5b184e',
    950: '#000000',
  },
}
SCSS
$custom: #5b184e;
$custom-light: #8c5b7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b184e",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 78
  },
  "hsl": {
    "h": 311.642,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.34035,
    "c": 0.11781,
    "h": 336.6
  },
  "luminance": 0.03427
}

Semantic roles & 50–950 ramp

primary
#5B184E
secondary
#3D924E
accent
#E16446
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B184E

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

Preview Lab → · Contrast checker → · Palette generator →

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