#5B174C#5B174C

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

Color values

HEX#5B174C
RGBrgb(91, 23, 76)
HSLhsl(313, 60%, 22%)
HSVhsv(313, 75%, 36%)
CMYKcmyk(0%, 74.7%, 16.5%, 64.3%)
CIE-LABlab(21.43, 36.93, -16.24)
CIE-LCHlch(21.43, 40.34, 336.26°)
OKLaboklab(33.82% 0.1091 -0.044)
OKLCHoklch(33.82% 0.118 338)
XYZxyz(5.9254, 3.3593, 7.1724)
Luminance0.0336 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B174C #175B26
analogous
#48175B #5B174C #5B172A
triadic
#5B174C #4C5B17 #174C5B
tetradic
#5B174C #5B4817 #175B26 #172A5B
square
#5B174C #5B4817 #175B26 #172A5B
split-complementary
#5B174C #2A5B17 #175B48
monochromatic
#180614 #2A0B23 #5B174C #8C2375 #BD309E

Accessibility & contrast

On white

12.56
#5B174C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B174C
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B174C#FFFFFF#000000##FFFFFF
##5B174C1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2D4E
Deuteranopia (green-blind)
#30374A
Tritanopia (blue-blind)
#601A2F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5b174c;
/* rgb */ color: rgb(91, 23, 76);
/* oklch */ color: oklch(33.8% 0.118 338.0);
Tailwind
colors: {
  custom: {
    50: '#8c5b7e',
    500: '#5b174c',
    950: '#000000',
  },
}
SCSS
$custom: #5b174c;
$custom-light: #8c5b7e;
$custom-dark: #000000;
JSON
{
  "hex": "#5b174c",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 76
  },
  "hsl": {
    "h": 313.235,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33817,
    "c": 0.11763,
    "h": 338
  },
  "luminance": 0.03359
}

Semantic roles & 50–950 ramp

primary
#5B174C
secondary
#3C924F
accent
#E36845
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B174C

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

Preview Lab → · Contrast checker → · Palette generator →

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