#5B1159#5B1159

#5B1159 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 34.0% C 0.136 H 329.3°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#5B1159
RGBrgb(91, 17, 89)
HSLhsl(302, 69%, 21%)
HSVhsv(302, 81%, 36%)
CMYKcmyk(0%, 81.3%, 2.2%, 64.3%)
CIE-LABlab(21.38, 41.41, -25.06)
CIE-LCHlch(21.38, 48.41, 328.82°)
OKLaboklab(34.02% 0.1166 -0.0693)
OKLCHoklch(34.02% 0.136 329.3)
XYZxyz(6.3180, 3.3468, 9.7625)
Luminance0.0335 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1159 #115B13
analogous
#38115B #5B1159 #5B1134
triadic
#5B1159 #595B11 #11595B
tetradic
#5B1159 #5B3811 #115B13 #11345B
square
#5B1159 #5B3811 #115B13 #11345B
split-complementary
#5B1159 #345B11 #115B38
monochromatic
#1A0519 #270727 #5B1159 #8F1B8B #C224BE

Accessibility & contrast

On white

12.58
#5B1159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#5B1159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1159
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1159#FFFFFF#000000##FFFFFF
##5B11591.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042D5B
Deuteranopia (green-blind)
#273757
Tritanopia (blue-blind)
#5E1C34
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5b1159;
/* rgb */ color: rgb(91, 17, 89);
/* oklch */ color: oklch(34.0% 0.136 329.3);
Tailwind
colors: {
  custom: {
    50: '#8c5988',
    500: '#5b1159',
    950: '#000000',
  },
}
SCSS
$custom: #5b1159;
$custom-light: #8c5988;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1159",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 89
  },
  "hsl": {
    "h": 301.622,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.34024,
    "c": 0.13568,
    "h": 329.3
  },
  "luminance": 0.03346
}

Semantic roles & 50–950 ramp

primary
#5B1159
secondary
#349437
accent
#EB413C
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B1159

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

Preview Lab → · Contrast checker → · Palette generator →

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