#5B1157#5B1157

#5B1157 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.9% C 0.134 H 330.5°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#5B1157
RGBrgb(91, 17, 87)
HSLhsl(303, 69%, 21%)
HSVhsv(303, 81%, 36%)
CMYKcmyk(0%, 81.3%, 4.4%, 64.3%)
CIE-LABlab(21.26, 41.05, -23.92)
CIE-LCHlch(21.26, 47.52, 329.77°)
OKLaboklab(33.9% 0.1166 -0.066)
OKLCHoklch(33.9% 0.134 330.5)
XYZxyz(6.2351, 3.3137, 9.3262)
Luminance0.0331 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1157 #115B15
analogous
#3A115B #5B1157 #5B1132
triadic
#5B1157 #575B11 #11575B
tetradic
#5B1157 #5B3A11 #115B15 #11325B
square
#5B1157 #5B3A11 #115B15 #11325B
split-complementary
#5B1157 #325B11 #115B3A
monochromatic
#1A0519 #270726 #5B1157 #8F1B88 #C224BA

Accessibility & contrast

On white

12.63
#5B1157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#5B1157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1157
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1157#FFFFFF#000000##FFFFFF
##5B11571.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082D59
Deuteranopia (green-blind)
#283755
Tritanopia (blue-blind)
#5F1B33
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5b1157;
/* rgb */ color: rgb(91, 17, 87);
/* oklch */ color: oklch(33.9% 0.134 330.5);
Tailwind
colors: {
  custom: {
    50: '#8c5987',
    500: '#5b1157',
    950: '#000000',
  },
}
SCSS
$custom: #5b1157;
$custom-light: #8c5987;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1157",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 303.243,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.33896,
    "c": 0.13402,
    "h": 330.5
  },
  "luminance": 0.03313
}

Semantic roles & 50–950 ramp

primary
#5B1157
secondary
#349439
accent
#EB463C
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B1157

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

Preview Lab → · Contrast checker → · Palette generator →

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