#5B1356#5B1356

#5B1356 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.0% C 0.131 H 331.1°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#5B1356
RGBrgb(91, 19, 86)
HSLhsl(304, 65%, 22%)
HSVhsv(304, 79%, 36%)
CMYKcmyk(0%, 79.1%, 5.5%, 64.3%)
CIE-LABlab(21.44, 40.19, -22.97)
CIE-LCHlch(21.44, 46.29, 330.25°)
OKLaboklab(34.01% 0.1146 -0.0633)
OKLCHoklch(34.01% 0.131 331.1)
XYZxyz(6.2270, 3.3623, 9.1233)
Luminance0.0336 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1356 #135B18
analogous
#3C135B #5B1356 #5B1332
triadic
#5B1356 #565B13 #13565B
tetradic
#5B1356 #5B3C13 #135B18 #13325B
square
#5B1356 #5B3C13 #135B18 #13325B
split-complementary
#5B1356 #325B13 #135B3C
monochromatic
#190518 #280826 #5B1356 #8E1E86 #C028B6

Accessibility & contrast

On white

12.56
#5B1356 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1356
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1356#FFFFFF#000000##FFFFFF
##5B13561.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2D58
Deuteranopia (green-blind)
#2A3754
Tritanopia (blue-blind)
#5F1C33
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5b1356;
/* rgb */ color: rgb(91, 19, 86);
/* oklch */ color: oklch(34.0% 0.131 331.1);
Tailwind
colors: {
  custom: {
    50: '#8c5a86',
    500: '#5b1356',
    950: '#000000',
  },
}
SCSS
$custom: #5b1356;
$custom-light: #8c5a86;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1356",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 86
  },
  "hsl": {
    "h": 304.167,
    "s": 65.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.34006,
    "c": 0.13091,
    "h": 331.1
  },
  "luminance": 0.03362
}

Semantic roles & 50–950 ramp

primary
#5B1356
secondary
#37933D
accent
#E84B3F
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B1356

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

Preview Lab → · Contrast checker → · Palette generator →

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