#5B1859#5B1859

#5B1859 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.7% C 0.127 H 329.2°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#5B1859
RGBrgb(91, 24, 89)
HSLhsl(302, 58%, 23%)
HSVhsv(302, 74%, 36%)
CMYKcmyk(0%, 73.6%, 2.2%, 64.3%)
CIE-LABlab(22.30, 38.80, -23.61)
CIE-LCHlch(22.30, 45.42, 328.68°)
OKLaboklab(34.68% 0.1092 -0.0652)
OKLCHoklch(34.68% 0.127 329.2)
XYZxyz(6.4441, 3.5992, 9.8046)
Luminance0.0360 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1859 #185B1A
analogous
#3B185B #5B1859 #5B1837
triadic
#5B1859 #595B18 #18595B
tetradic
#5B1859 #5B3B18 #185B1A #18375B
square
#5B1859 #5B3B18 #185B1A #18375B
split-complementary
#5B1859 #375B18 #185B3B
monochromatic
#180618 #2B0B2A #5B1859 #8B2588 #BC32B8

Accessibility & contrast

On white

12.21
#5B1859 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5B1859 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1859
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1859#FFFFFF#000000##FFFFFF
##5B18591.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10305B
Deuteranopia (green-blind)
#2A3857
Tritanopia (blue-blind)
#5E2136
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b1859;
/* rgb */ color: rgb(91, 24, 89);
/* oklch */ color: oklch(34.7% 0.127 329.2);
Tailwind
colors: {
  custom: {
    50: '#8c5c88',
    500: '#5b1859',
    950: '#000000',
  },
}
SCSS
$custom: #5b1859;
$custom-light: #8c5c88;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1859",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 89
  },
  "hsl": {
    "h": 301.791,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.34682,
    "c": 0.12715,
    "h": 329.2
  },
  "luminance": 0.03599
}

Semantic roles & 50–950 ramp

primary
#5B1859
secondary
#3D9240
accent
#E14B46
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B1859

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

Preview Lab → · Contrast checker → · Palette generator →

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