#5B114E#5B114E

#5B114E is a dark, vivid pink. Relative luminance 0.032; OKLCH L 33.3% C 0.127 H 336.3°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#5B114E
RGBrgb(91, 17, 78)
HSLhsl(311, 69%, 21%)
HSVhsv(311, 81%, 36%)
CMYKcmyk(0%, 81.3%, 14.3%, 64.3%)
CIE-LABlab(20.73, 39.53, -18.68)
CIE-LCHlch(20.73, 43.72, 334.70°)
OKLaboklab(33.35% 0.1161 -0.0509)
OKLCHoklch(33.35% 0.127 336.3)
XYZxyz(5.8901, 3.1756, 7.5090)
Luminance0.0318 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B114E #115B1E
analogous
#43115B #5B114E #5B1129
triadic
#5B114E #4E5B11 #114E5B
tetradic
#5B114E #5B4311 #115B1E #11295B
square
#5B114E #5B4311 #115B1E #11295B
split-complementary
#5B114E #295B11 #115B43
monochromatic
#1A0516 #270722 #5B114E #8F1B7A #C224A6

Accessibility & contrast

On white

12.84
#5B114E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#5B114E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B114E
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B114E#FFFFFF#000000##FFFFFF
##5B114E1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122B50
Deuteranopia (green-blind)
#2D364C
Tritanopia (blue-blind)
#60162E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b114e;
/* rgb */ color: rgb(91, 17, 78);
/* oklch */ color: oklch(33.3% 0.127 336.3);
Tailwind
colors: {
  custom: {
    50: '#8c5880',
    500: '#5b114e',
    950: '#000000',
  },
}
SCSS
$custom: #5b114e;
$custom-light: #8c5880;
$custom-dark: #000000;
JSON
{
  "hex": "#5b114e",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 78
  },
  "hsl": {
    "h": 310.541,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.33349,
    "c": 0.12681,
    "h": 336.3
  },
  "luminance": 0.03175
}

Semantic roles & 50–950 ramp

primary
#5B114E
secondary
#349445
accent
#EB5B3C
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B114E

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

Preview Lab → · Contrast checker → · Palette generator →

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