#5B174B#5B174B

#5B174B is a dark, moderate pink. Relative luminance 0.033; OKLCH L 33.8% C 0.117 H 338.8°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#5B174B
RGBrgb(91, 23, 75)
HSLhsl(314, 60%, 22%)
HSVhsv(314, 75%, 36%)
CMYKcmyk(0%, 74.7%, 17.6%, 64.3%)
CIE-LABlab(21.38, 36.76, -15.64)
CIE-LCHlch(21.38, 39.95, 336.95°)
OKLaboklab(33.76% 0.1089 -0.0423)
OKLCHoklch(33.76% 0.117 338.8)
XYZxyz(5.8909, 3.3455, 6.9907)
Luminance0.0335 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B174B #175B27
analogous
#49175B #5B174B #5B1729
triadic
#5B174B #4B5B17 #174B5B
tetradic
#5B174B #5B4917 #175B27 #17295B
square
#5B174B #5B4917 #175B27 #17295B
split-complementary
#5B174B #295B17 #175B49
monochromatic
#180614 #2A0B23 #5B174B #8C2373 #BD309C

Accessibility & contrast

On white

12.58
#5B174B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B174B
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B174B#FFFFFF#000000##FFFFFF
##5B174B1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2C4C
Deuteranopia (green-blind)
#303749
Tritanopia (blue-blind)
#601A2E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5b174b;
/* rgb */ color: rgb(91, 23, 75);
/* oklch */ color: oklch(33.8% 0.117 338.8);
Tailwind
colors: {
  custom: {
    50: '#8c5b7d',
    500: '#5b174b',
    950: '#000000',
  },
}
SCSS
$custom: #5b174b;
$custom-light: #8c5b7d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b174b",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 75
  },
  "hsl": {
    "h": 314.118,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33763,
    "c": 0.11685,
    "h": 338.8
  },
  "luminance": 0.03345
}

Semantic roles & 50–950 ramp

primary
#5B174B
secondary
#3C9250
accent
#E36A45
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5B174B

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

Preview Lab → · Contrast checker → · Palette generator →

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