#5B184D#5B184D

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

Color values

HEX#5B184D
RGBrgb(91, 24, 77)
HSLhsl(313, 58%, 23%)
HSVhsv(313, 74%, 36%)
CMYKcmyk(0%, 73.6%, 15.4%, 64.3%)
CIE-LABlab(21.63, 36.67, -16.60)
CIE-LCHlch(21.63, 40.26, 335.64°)
OKLaboklab(33.98% 0.108 -0.0451)
OKLCHoklch(33.98% 0.117 337.3)
XYZxyz(5.9807, 3.4138, 7.3637)
Luminance0.0341 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B184D #185B26
analogous
#47185B #5B184D #5B182C
triadic
#5B184D #4D5B18 #184D5B
tetradic
#5B184D #5B4718 #185B26 #182C5B
square
#5B184D #5B4718 #185B26 #182C5B
split-complementary
#5B184D #2C5B18 #185B47
monochromatic
#180614 #2B0B24 #5B184D #8B2576 #BC329F

Accessibility & contrast

On white

12.48
#5B184D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#5B184D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B184D
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B184D#FFFFFF#000000##FFFFFF
##5B184D1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2D4F
Deuteranopia (green-blind)
#30384B
Tritanopia (blue-blind)
#601B30
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5b184d;
/* rgb */ color: rgb(91, 24, 77);
/* oklch */ color: oklch(34.0% 0.117 337.3);
Tailwind
colors: {
  custom: {
    50: '#8c5b7f',
    500: '#5b184d',
    950: '#000000',
  },
}
SCSS
$custom: #5b184d;
$custom-light: #8c5b7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b184d",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 77
  },
  "hsl": {
    "h": 312.537,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.3398,
    "c": 0.11701,
    "h": 337.3
  },
  "luminance": 0.03413
}

Semantic roles & 50–950 ramp

primary
#5B184D
secondary
#3D924F
accent
#E16746
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B184D

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

Preview Lab → · Contrast checker → · Palette generator →

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