#5B174E#5B174E

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

Color values

HEX#5B174E
RGBrgb(91, 23, 78)
HSLhsl(311, 60%, 22%)
HSVhsv(311, 75%, 36%)
CMYKcmyk(0%, 74.7%, 14.3%, 64.3%)
CIE-LABlab(21.53, 37.26, -17.43)
CIE-LCHlch(21.53, 41.14, 334.93°)
OKLaboklab(33.93% 0.1094 -0.0474)
OKLCHoklch(33.93% 0.119 336.6)
XYZxyz(5.9960, 3.3875, 7.5443)
Luminance0.0339 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B174E #175B24
analogous
#46175B #5B174E #5B172C
triadic
#5B174E #4E5B17 #174E5B
tetradic
#5B174E #5B4617 #175B24 #172C5B
square
#5B174E #5B4617 #175B24 #172C5B
split-complementary
#5B174E #2C5B17 #175B46
monochromatic
#180615 #2A0B24 #5B174E #8C2378 #BD30A2

Accessibility & contrast

On white

12.52
#5B174E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B174E
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B174E#FFFFFF#000000##FFFFFF
##5B174E1.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182D50
Deuteranopia (green-blind)
#2F374C
Tritanopia (blue-blind)
#601B30
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5b174e;
/* rgb */ color: rgb(91, 23, 78);
/* oklch */ color: oklch(33.9% 0.119 336.6);
Tailwind
colors: {
  custom: {
    50: '#8c5b7f',
    500: '#5b174e',
    950: '#000000',
  },
}
SCSS
$custom: #5b174e;
$custom-light: #8c5b7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b174e",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 78
  },
  "hsl": {
    "h": 311.471,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33927,
    "c": 0.11921,
    "h": 336.6
  },
  "luminance": 0.03387
}

Semantic roles & 50–950 ramp

primary
#5B174E
secondary
#3C924C
accent
#E36345
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B174E

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

Preview Lab → · Contrast checker → · Palette generator →

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