#5B1357#5B1357

#5B1357 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.1% C 0.132 H 330.5°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#5B1357
RGBrgb(91, 19, 87)
HSLhsl(303, 65%, 22%)
HSVhsv(303, 79%, 36%)
CMYKcmyk(0%, 79.1%, 4.4%, 64.3%)
CIE-LABlab(21.50, 40.36, -23.54)
CIE-LCHlch(21.50, 46.73, 329.75°)
OKLaboklab(34.07% 0.1146 -0.0649)
OKLCHoklch(34.07% 0.132 330.5)
XYZxyz(6.2675, 3.3785, 9.3370)
Luminance0.0338 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1357 #135B17
analogous
#3B135B #5B1357 #5B1333
triadic
#5B1357 #575B13 #13575B
tetradic
#5B1357 #5B3B13 #135B17 #13335B
square
#5B1357 #5B3B13 #135B17 #13335B
split-complementary
#5B1357 #335B13 #135B3B
monochromatic
#190518 #280827 #5B1357 #8E1E87 #C028B8

Accessibility & contrast

On white

12.53
#5B1357 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#5B1357 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1357
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1357#FFFFFF#000000##FFFFFF
##5B13571.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2D59
Deuteranopia (green-blind)
#293755
Tritanopia (blue-blind)
#5F1C34
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5b1357;
/* rgb */ color: rgb(91, 19, 87);
/* oklch */ color: oklch(34.1% 0.132 330.5);
Tailwind
colors: {
  custom: {
    50: '#8c5a86',
    500: '#5b1357',
    950: '#000000',
  },
}
SCSS
$custom: #5b1357;
$custom-light: #8c5a86;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1357",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 87
  },
  "hsl": {
    "h": 303.333,
    "s": 65.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.34069,
    "c": 0.13175,
    "h": 330.5
  },
  "luminance": 0.03378
}

Semantic roles & 50–950 ramp

primary
#5B1357
secondary
#37933C
accent
#E8493F
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B1357

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

Preview Lab → · Contrast checker → · Palette generator →

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