#5B1353#5B1353

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

Color values

HEX#5B1353
RGBrgb(91, 19, 83)
HSLhsl(307, 65%, 22%)
HSVhsv(307, 79%, 36%)
CMYKcmyk(0%, 79.1%, 8.8%, 64.3%)
CIE-LABlab(21.26, 39.66, -21.23)
CIE-LCHlch(21.26, 44.99, 331.84°)
OKLaboklab(33.82% 0.1145 -0.0583)
OKLCHoklch(33.82% 0.128 333)
XYZxyz(6.1086, 3.3149, 8.5001)
Luminance0.0331 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1353 #135B1B
analogous
#3F135B #5B1353 #5B132F
triadic
#5B1353 #535B13 #13535B
tetradic
#5B1353 #5B3F13 #135B1B #132F5B
square
#5B1353 #5B3F13 #135B1B #132F5B
split-complementary
#5B1353 #2F5B13 #135B3F
monochromatic
#190517 #280825 #5B1353 #8E1E81 #C028AF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B1353#FFFFFF#000000##FFFFFF
##5B13531.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)
#102C55
Deuteranopia (green-blind)
#2B3751
Tritanopia (blue-blind)
#5F1A31
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5b1353;
/* rgb */ color: rgb(91, 19, 83);
/* oklch */ color: oklch(33.8% 0.128 333.0);
Tailwind
colors: {
  custom: {
    50: '#8c5983',
    500: '#5b1353',
    950: '#000000',
  },
}
SCSS
$custom: #5b1353;
$custom-light: #8c5983;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1353",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 83
  },
  "hsl": {
    "h": 306.667,
    "s": 65.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.33822,
    "c": 0.12843,
    "h": 333
  },
  "luminance": 0.03314
}

Semantic roles & 50–950 ramp

primary
#5B1353
secondary
#379341
accent
#E8523F
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B1353

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

Preview Lab → · Contrast checker → · Palette generator →

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