#5B154D#5B154D

#5B154D is a dark, vivid pink. Relative luminance 0.033; OKLCH L 33.7% C 0.121 H 337.2°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#5B154D
RGBrgb(91, 21, 77)
HSLhsl(312, 63%, 22%)
HSVhsv(312, 77%, 36%)
CMYKcmyk(0%, 76.9%, 15.4%, 64.3%)
CIE-LABlab(21.20, 37.90, -17.28)
CIE-LCHlch(21.20, 41.65, 335.49°)
OKLaboklab(33.67% 0.1116 -0.047)
OKLCHoklch(33.67% 0.121 337.2)
XYZxyz(5.9222, 3.2968, 7.3442)
Luminance0.0330 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B154D #155B23
analogous
#46155B #5B154D #5B152A
triadic
#5B154D #4D5B15 #154D5B
tetradic
#5B154D #5B4615 #155B23 #152A5B
square
#5B154D #5B4615 #155B23 #152A5B
split-complementary
#5B154D #2A5B15 #155B46
monochromatic
#190615 #290A23 #5B154D #8D2077 #BE2CA1

Accessibility & contrast

On white

12.66
#5B154D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#5B154D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B154D
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B154D#FFFFFF#000000##FFFFFF
##5B154D1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172C4F
Deuteranopia (green-blind)
#2F374B
Tritanopia (blue-blind)
#60192F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5b154d;
/* rgb */ color: rgb(91, 21, 77);
/* oklch */ color: oklch(33.7% 0.121 337.2);
Tailwind
colors: {
  custom: {
    50: '#8c5a7f',
    500: '#5b154d',
    950: '#000000',
  },
}
SCSS
$custom: #5b154d;
$custom-light: #8c5a7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b154d",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 77
  },
  "hsl": {
    "h": 312,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.33665,
    "c": 0.12112,
    "h": 337.2
  },
  "luminance": 0.03296
}

Semantic roles & 50–950 ramp

primary
#5B154D
secondary
#39924B
accent
#E66342
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B154D

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

Preview Lab → · Contrast checker → · Palette generator →

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