#5B114C#5B114C

#5B114C is a dark, vivid pink. Relative luminance 0.031; OKLCH L 33.2% C 0.125 H 337.7°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#5B114C
RGBrgb(91, 17, 76)
HSLhsl(312, 69%, 21%)
HSVhsv(312, 81%, 36%)
CMYKcmyk(0%, 81.3%, 16.5%, 64.3%)
CIE-LABlab(20.62, 39.20, -17.49)
CIE-LCHlch(20.62, 42.93, 335.95°)
OKLaboklab(33.24% 0.1159 -0.0475)
OKLCHoklch(33.24% 0.125 337.7)
XYZxyz(5.8195, 3.1474, 7.1371)
Luminance0.0315 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B114C #115B20
analogous
#45115B #5B114C #5B1127
triadic
#5B114C #4C5B11 #114C5B
tetradic
#5B114C #5B4511 #115B20 #11275B
square
#5B114C #5B4511 #115B20 #11275B
split-complementary
#5B114C #275B11 #115B45
monochromatic
#1A0516 #270721 #5B114C #8F1B77 #C224A2

Accessibility & contrast

On white

12.89
#5B114C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#5B114C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B114C
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B114C#FFFFFF#000000##FFFFFF
##5B114C1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142A4E
Deuteranopia (green-blind)
#2D364A
Tritanopia (blue-blind)
#60152D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b114c;
/* rgb */ color: rgb(91, 17, 76);
/* oklch */ color: oklch(33.2% 0.125 337.7);
Tailwind
colors: {
  custom: {
    50: '#8c587e',
    500: '#5b114c',
    950: '#000000',
  },
}
SCSS
$custom: #5b114c;
$custom-light: #8c587e;
$custom-dark: #000000;
JSON
{
  "hex": "#5b114c",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 76
  },
  "hsl": {
    "h": 312.162,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.33235,
    "c": 0.12528,
    "h": 337.7
  },
  "luminance": 0.03147
}

Semantic roles & 50–950 ramp

primary
#5B114C
secondary
#349447
accent
#EB603C
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B114C

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

Preview Lab → · Contrast checker → · Palette generator →

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