#5B154A#5B154A

#5B154A is a dark, moderate pink. Relative luminance 0.033; OKLCH L 33.5% C 0.119 H 339.4°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#5B154A
RGBrgb(91, 21, 74)
HSLhsl(315, 63%, 22%)
HSVhsv(315, 77%, 36%)
CMYKcmyk(0%, 76.9%, 18.7%, 64.3%)
CIE-LABlab(21.04, 37.41, -15.49)
CIE-LCHlch(21.04, 40.49, 337.51°)
OKLaboklab(33.5% 0.1112 -0.0419)
OKLCHoklch(33.5% 0.119 339.4)
XYZxyz(5.8187, 3.2554, 6.7992)
Luminance0.0326 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B154A #155B26
analogous
#49155B #5B154A #5B1527
triadic
#5B154A #4A5B15 #154A5B
tetradic
#5B154A #5B4915 #155B26 #15275B
square
#5B154A #5B4915 #155B26 #15275B
split-complementary
#5B154A #275B15 #155B49
monochromatic
#190614 #290A22 #5B154A #8D2072 #BE2C9B

Accessibility & contrast

On white

12.72
#5B154A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#5B154A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B154A
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B154A#FFFFFF#000000##FFFFFF
##5B154A1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192C4B
Deuteranopia (green-blind)
#303748
Tritanopia (blue-blind)
#61182D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5b154a;
/* rgb */ color: rgb(91, 21, 74);
/* oklch */ color: oklch(33.5% 0.119 339.4);
Tailwind
colors: {
  custom: {
    50: '#8c5a7c',
    500: '#5b154a',
    950: '#000000',
  },
}
SCSS
$custom: #5b154a;
$custom-light: #8c5a7c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b154a",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 74
  },
  "hsl": {
    "h": 314.571,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.33501,
    "c": 0.11881,
    "h": 339.4
  },
  "luminance": 0.03255
}

Semantic roles & 50–950 ramp

primary
#5B154A
secondary
#39924F
accent
#E66A42
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5B154A

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

Preview Lab → · Contrast checker → · Palette generator →

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