#5B174D#5B174D

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

Color values

HEX#5B174D
RGBrgb(91, 23, 77)
HSLhsl(312, 60%, 22%)
HSVhsv(312, 75%, 36%)
CMYKcmyk(0%, 74.7%, 15.4%, 64.3%)
CIE-LABlab(21.48, 37.09, -16.84)
CIE-LCHlch(21.48, 40.73, 335.58°)
OKLaboklab(33.87% 0.1092 -0.0457)
OKLCHoklch(33.87% 0.118 337.3)
XYZxyz(5.9604, 3.3733, 7.3569)
Luminance0.0337 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B174D #175B25
analogous
#47175B #5B174D #5B172B
triadic
#5B174D #4D5B17 #174D5B
tetradic
#5B174D #5B4717 #175B25 #172B5B
square
#5B174D #5B4717 #175B25 #172B5B
split-complementary
#5B174D #2B5B17 #175B47
monochromatic
#180615 #2A0B24 #5B174D #8C2376 #BD30A0

Accessibility & contrast

On white

12.54
#5B174D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#5B174D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B174D
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B174D#FFFFFF#000000##FFFFFF
##5B174D1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192D4F
Deuteranopia (green-blind)
#2F374B
Tritanopia (blue-blind)
#601B2F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5b174d;
/* rgb */ color: rgb(91, 23, 77);
/* oklch */ color: oklch(33.9% 0.118 337.3);
Tailwind
colors: {
  custom: {
    50: '#8c5b7f',
    500: '#5b174d',
    950: '#000000',
  },
}
SCSS
$custom: #5b174d;
$custom-light: #8c5b7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b174d",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 77
  },
  "hsl": {
    "h": 312.353,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33872,
    "c": 0.11841,
    "h": 337.3
  },
  "luminance": 0.03373
}

Semantic roles & 50–950 ramp

primary
#5B174D
secondary
#3C924E
accent
#E36545
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B174D

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

Preview Lab → · Contrast checker → · Palette generator →

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