#5B1358#5B1358

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

Color values

HEX#5B1358
RGBrgb(91, 19, 88)
HSLhsl(303, 65%, 22%)
HSVhsv(303, 79%, 36%)
CMYKcmyk(0%, 79.1%, 3.3%, 64.3%)
CIE-LABlab(21.56, 40.54, -24.11)
CIE-LCHlch(21.56, 47.17, 329.26°)
OKLaboklab(34.13% 0.1147 -0.0666)
OKLCHoklch(34.13% 0.133 329.8)
XYZxyz(6.3087, 3.3950, 9.5536)
Luminance0.0339 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1358 #135B16
analogous
#3A135B #5B1358 #5B1334
triadic
#5B1358 #585B13 #13585B
tetradic
#5B1358 #5B3A13 #135B16 #13345B
square
#5B1358 #5B3A13 #135B16 #13345B
split-complementary
#5B1358 #345B13 #135B3A
monochromatic
#190518 #280827 #5B1358 #8E1E89 #C028BA

Accessibility & contrast

On white

12.51
#5B1358 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1358
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1358#FFFFFF#000000##FFFFFF
##5B13581.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092E5A
Deuteranopia (green-blind)
#293756
Tritanopia (blue-blind)
#5F1D34
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5b1358;
/* rgb */ color: rgb(91, 19, 88);
/* oklch */ color: oklch(34.1% 0.133 329.8);
Tailwind
colors: {
  custom: {
    50: '#8c5a87',
    500: '#5b1358',
    950: '#000000',
  },
}
SCSS
$custom: #5b1358;
$custom-light: #8c5a87;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1358",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 88
  },
  "hsl": {
    "h": 302.5,
    "s": 65.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.34132,
    "c": 0.13259,
    "h": 329.8
  },
  "luminance": 0.03394
}

Semantic roles & 50–950 ramp

primary
#5B1358
secondary
#37933B
accent
#E8463F
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B1358

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

Preview Lab → · Contrast checker → · Palette generator →

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