#5B1362#5B1362

#5B1362 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.141 H 324.1°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#5B1362
RGBrgb(91, 19, 98)
HSLhsl(295, 68%, 23%)
HSVhsv(295, 81%, 38%)
CMYKcmyk(7.1%, 80.6%, 0%, 61.6%)
CIE-LABlab(22.20, 42.41, -29.72)
CIE-LCHlch(22.20, 51.78, 324.98°)
OKLaboklab(34.8% 0.1144 -0.0829)
OKLCHoklch(34.8% 0.141 324.1)
XYZxyz(6.7517, 3.5722, 11.8868)
Luminance0.0357 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1362 #1A6213
analogous
#341362 #5B1362 #621341
triadic
#5B1362 #625B13 #13625B
tetradic
#5B1362 #623413 #1A6213 #134162
square
#5B1362 #623413 #1A6213 #134162
split-complementary
#5B1362 #416213 #136234
monochromatic
#18051A #2B092F #5B1362 #8B1D95 #BA27C9

Accessibility & contrast

On white

12.25
#5B1362 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5B1362 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1362
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1362#FFFFFF#000000##FFFFFF
##5B13621.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003064
Deuteranopia (green-blind)
#223860
Tritanopia (blue-blind)
#5D223A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b1362;
/* rgb */ color: rgb(91, 19, 98);
/* oklch */ color: oklch(34.8% 0.141 324.1);
Tailwind
colors: {
  custom: {
    50: '#8c5a8f',
    500: '#5b1362',
    950: '#000000',
  },
}
SCSS
$custom: #5b1362;
$custom-light: #8c5a8f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1362",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 98
  },
  "hsl": {
    "h": 294.684,
    "s": 67.521,
    "l": 22.941
  },
  "oklch": {
    "l": 0.34797,
    "c": 0.14125,
    "h": 324.1
  },
  "luminance": 0.03572
}

Semantic roles & 50–950 ramp

primary
#5B1362
secondary
#409A37
accent
#EA3D4D
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B1362

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

Preview Lab → · Contrast checker → · Palette generator →

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