#5B174F#5B174F

#5B174F is a dark, vivid pink. Relative luminance 0.034; OKLCH L 34.0% C 0.120 H 335.8°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#5B174F
RGBrgb(91, 23, 79)
HSLhsl(311, 60%, 22%)
HSVhsv(311, 75%, 36%)
CMYKcmyk(0%, 74.7%, 13.2%, 64.3%)
CIE-LABlab(21.59, 37.43, -18.03)
CIE-LCHlch(21.59, 41.54, 334.28°)
OKLaboklab(33.98% 0.1095 -0.0491)
OKLCHoklch(33.98% 0.12 335.8)
XYZxyz(6.0321, 3.4020, 7.7346)
Luminance0.0340 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B174F #175B23
analogous
#45175B #5B174F #5B172D
triadic
#5B174F #4F5B17 #174F5B
tetradic
#5B174F #5B4517 #175B23 #172D5B
square
#5B174F #5B4517 #175B23 #172D5B
split-complementary
#5B174F #2D5B17 #175B45
monochromatic
#180615 #2A0B25 #5B174F #8C2379 #BD30A4

Accessibility & contrast

On white

12.50
#5B174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B174F
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B174F#FFFFFF#000000##FFFFFF
##5B174F1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182D51
Deuteranopia (green-blind)
#2F374D
Tritanopia (blue-blind)
#601C31
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5b174f;
/* rgb */ color: rgb(91, 23, 79);
/* oklch */ color: oklch(34.0% 0.120 335.8);
Tailwind
colors: {
  custom: {
    50: '#8c5b80',
    500: '#5b174f',
    950: '#000000',
  },
}
SCSS
$custom: #5b174f;
$custom-light: #8c5b80;
$custom-dark: #000000;
JSON
{
  "hex": "#5b174f",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 310.588,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33983,
    "c": 0.12002,
    "h": 335.8
  },
  "luminance": 0.03401
}

Semantic roles & 50–950 ramp

primary
#5B174F
secondary
#3C924B
accent
#E36145
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B174F

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

Preview Lab → · Contrast checker → · Palette generator →

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