#5B1367#5B1367

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

Color values

HEX#5B1367
RGBrgb(91, 19, 103)
HSLhsl(291, 69%, 24%)
HSVhsv(291, 82%, 40%)
CMYKcmyk(11.7%, 81.6%, 0%, 59.6%)
CIE-LABlab(22.55, 43.38, -32.45)
CIE-LCHlch(22.55, 54.17, 323.21°)
OKLaboklab(35.15% 0.1139 -0.0909)
OKLCHoklch(35.15% 0.146 321.4)
XYZxyz(6.9952, 3.6696, 13.1692)
Luminance0.0367 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1367 #1F6713
analogous
#311367 #5B1367 #671349
triadic
#5B1367 #675B13 #13675B
tetradic
#5B1367 #673113 #1F6713 #134967
square
#5B1367 #673113 #1F6713 #134967
split-complementary
#5B1367 #496713 #136731
monochromatic
#17051A #2D0933 #5B1367 #891D9B #B626CE

Accessibility & contrast

On white

12.11
#5B1367 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#5B1367 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1367
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1367#FFFFFF#000000##FFFFFF
##5B13671.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003169
Deuteranopia (green-blind)
#1E3865
Tritanopia (blue-blind)
#5C243D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5b1367;
/* rgb */ color: rgb(91, 19, 103);
/* oklch */ color: oklch(35.2% 0.146 321.4);
Tailwind
colors: {
  custom: {
    50: '#8d5a93',
    500: '#5b1367',
    950: '#000000',
  },
}
SCSS
$custom: #5b1367;
$custom-light: #8d5a93;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1367",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 103
  },
  "hsl": {
    "h": 291.429,
    "s": 68.852,
    "l": 23.922
  },
  "oklch": {
    "l": 0.35151,
    "c": 0.14571,
    "h": 321.4
  },
  "luminance": 0.03669
}

Semantic roles & 50–950 ramp

primary
#5B1367
secondary
#469E37
accent
#EC3C55
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5B1367

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

Preview Lab → · Contrast checker → · Palette generator →

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