#5B114F#5B114F

#5B114F is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.4% C 0.128 H 335.6°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#5B114F
RGBrgb(91, 17, 79)
HSLhsl(310, 69%, 21%)
HSVhsv(310, 81%, 36%)
CMYKcmyk(0%, 81.3%, 13.2%, 64.3%)
CIE-LABlab(20.79, 39.69, -19.27)
CIE-LCHlch(20.79, 44.12, 334.10°)
OKLaboklab(33.41% 0.1162 -0.0526)
OKLCHoklch(33.41% 0.128 335.6)
XYZxyz(5.9262, 3.1901, 7.6993)
Luminance0.0319 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B114F #115B1D
analogous
#42115B #5B114F #5B112A
triadic
#5B114F #4F5B11 #114F5B
tetradic
#5B114F #5B4211 #115B1D #112A5B
square
#5B114F #5B4211 #115B1D #112A5B
split-complementary
#5B114F #2A5B11 #115B42
monochromatic
#1A0516 #270722 #5B114F #8F1B7C #C224A9

Accessibility & contrast

On white

12.82
#5B114F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B114F
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B114F#FFFFFF#000000##FFFFFF
##5B114F1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112B51
Deuteranopia (green-blind)
#2C364D
Tritanopia (blue-blind)
#60172F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b114f;
/* rgb */ color: rgb(91, 17, 79);
/* oklch */ color: oklch(33.4% 0.128 335.6);
Tailwind
colors: {
  custom: {
    50: '#8c5880',
    500: '#5b114f',
    950: '#000000',
  },
}
SCSS
$custom: #5b114f;
$custom-light: #8c5880;
$custom-dark: #000000;
JSON
{
  "hex": "#5b114f",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 79
  },
  "hsl": {
    "h": 309.73,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.33408,
    "c": 0.12758,
    "h": 335.6
  },
  "luminance": 0.0319
}

Semantic roles & 50–950 ramp

primary
#5B114F
secondary
#349444
accent
#EB593C
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B114F

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

Preview Lab → · Contrast checker → · Palette generator →

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