#5B154E#5B154E

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

Color values

HEX#5B154E
RGBrgb(91, 21, 78)
HSLhsl(311, 63%, 22%)
HSVhsv(311, 77%, 36%)
CMYKcmyk(0%, 76.9%, 14.3%, 64.3%)
CIE-LABlab(21.25, 38.06, -17.88)
CIE-LCHlch(21.25, 42.05, 334.84°)
OKLaboklab(33.72% 0.1118 -0.0487)
OKLCHoklch(33.72% 0.122 336.5)
XYZxyz(5.9578, 3.3111, 7.5316)
Luminance0.0331 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B154E #155B22
analogous
#45155B #5B154E #5B152B
triadic
#5B154E #4E5B15 #154E5B
tetradic
#5B154E #5B4515 #155B22 #152B5B
square
#5B154E #5B4515 #155B22 #152B5B
split-complementary
#5B154E #2B5B15 #155B45
monochromatic
#190615 #290A23 #5B154E #8D2079 #BE2CA3

Accessibility & contrast

On white

12.63
#5B154E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B154E
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B154E#FFFFFF#000000##FFFFFF
##5B154E1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162C50
Deuteranopia (green-blind)
#2E374C
Tritanopia (blue-blind)
#60192F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5b154e;
/* rgb */ color: rgb(91, 21, 78);
/* oklch */ color: oklch(33.7% 0.122 336.5);
Tailwind
colors: {
  custom: {
    50: '#8c5a7f',
    500: '#5b154e',
    950: '#000000',
  },
}
SCSS
$custom: #5b154e;
$custom-light: #8c5a7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b154e",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 78
  },
  "hsl": {
    "h": 311.143,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.33721,
    "c": 0.12191,
    "h": 336.5
  },
  "luminance": 0.03311
}

Semantic roles & 50–950 ramp

primary
#5B154E
secondary
#39924A
accent
#E66142
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B154E

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

Preview Lab → · Contrast checker → · Palette generator →

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