#5B1368#5B1368

#5B1368 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.2% C 0.147 H 320.9°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#5B1368
RGBrgb(91, 19, 104)
HSLhsl(291, 69%, 24%)
HSVhsv(291, 82%, 41%)
CMYKcmyk(12.5%, 81.7%, 0%, 59.2%)
CIE-LABlab(22.62, 43.58, -32.99)
CIE-LCHlch(22.62, 54.66, 322.88°)
OKLaboklab(35.22% 0.1138 -0.0925)
OKLCHoklch(35.22% 0.147 320.9)
XYZxyz(7.0457, 3.6898, 13.4351)
Luminance0.0369 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1368 #206813
analogous
#311368 #5B1368 #68134B
triadic
#5B1368 #685B13 #13685B
tetradic
#5B1368 #683113 #206813 #134B68
square
#5B1368 #683113 #206813 #134B68
split-complementary
#5B1368 #4B6813 #136831
monochromatic
#17051A #2E0A34 #5B1368 #881C9C #B626CF

Accessibility & contrast

On white

12.08
#5B1368 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5B1368 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1368
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1368#FFFFFF#000000##FFFFFF
##5B13681.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316A
Deuteranopia (green-blind)
#1D3966
Tritanopia (blue-blind)
#5C253D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5b1368;
/* rgb */ color: rgb(91, 19, 104);
/* oklch */ color: oklch(35.2% 0.147 320.9);
Tailwind
colors: {
  custom: {
    50: '#8d5a94',
    500: '#5b1368',
    950: '#000000',
  },
}
SCSS
$custom: #5b1368;
$custom-light: #8d5a94;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1368",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 104
  },
  "hsl": {
    "h": 290.824,
    "s": 69.106,
    "l": 24.118
  },
  "oklch": {
    "l": 0.35223,
    "c": 0.14662,
    "h": 320.9
  },
  "luminance": 0.03689
}

Semantic roles & 50–950 ramp

primary
#5B1368
secondary
#479F37
accent
#EC3C57
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5B1368

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

Preview Lab → · Contrast checker → · Palette generator →

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