#5B115F#5B115F

#5B115F is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.4% C 0.141 H 325.8°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#5B115F
RGBrgb(91, 17, 95)
HSLhsl(297, 70%, 22%)
HSVhsv(297, 82%, 37%)
CMYKcmyk(4.2%, 82.1%, 0%, 62.7%)
CIE-LABlab(21.77, 42.51, -28.43)
CIE-LCHlch(21.77, 51.14, 326.22°)
OKLaboklab(34.42% 0.1164 -0.0791)
OKLCHoklch(34.42% 0.141 325.8)
XYZxyz(6.5803, 3.4517, 11.1439)
Luminance0.0345 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B115F #155F11
analogous
#34115F #5B115F #5F113C
triadic
#5B115F #5F5B11 #115F5B
tetradic
#5B115F #5F3411 #155F11 #113C5F
square
#5B115F #5F3411 #155F11 #113C5F
split-complementary
#5B115F #3C5F11 #115F34
monochromatic
#19051A #29082B #5B115F #8D1A93 #BE24C7

Accessibility & contrast

On white

12.42
#5B115F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#5B115F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B115F
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B115F#FFFFFF#000000##FFFFFF
##5B115F1.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E61
Deuteranopia (green-blind)
#23375D
Tritanopia (blue-blind)
#5D1F38
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5b115f;
/* rgb */ color: rgb(91, 17, 95);
/* oklch */ color: oklch(34.4% 0.141 325.8);
Tailwind
colors: {
  custom: {
    50: '#8c598d',
    500: '#5b115f',
    950: '#000000',
  },
}
SCSS
$custom: #5b115f;
$custom-light: #8c598d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b115f",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 95
  },
  "hsl": {
    "h": 296.923,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.34424,
    "c": 0.14077,
    "h": 325.8
  },
  "luminance": 0.03451
}

Semantic roles & 50–950 ramp

primary
#5B115F
secondary
#399834
accent
#EC3B44
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B115F

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

Preview Lab → · Contrast checker → · Palette generator →

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