#5E1B59#5E1B59

#5E1B59 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.5% C 0.125 H 331.0°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#5E1B59
RGBrgb(94, 27, 89)
HSLhsl(304, 55%, 24%)
HSVhsv(304, 71%, 37%)
CMYKcmyk(0%, 71.3%, 5.3%, 63.1%)
CIE-LABlab(23.29, 38.33, -22.01)
CIE-LCHlch(23.29, 44.21, 330.13°)
OKLaboklab(35.5% 0.1092 -0.0605)
OKLCHoklch(35.5% 0.125 331)
XYZxyz(6.8112, 3.8853, 9.8405)
Luminance0.0389 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1B59 #1B5E20
analogous
#411B5E #5E1B59 #5E1B37
triadic
#5E1B59 #595E1B #1B595E
tetradic
#5E1B59 #5E411B #1B5E20 #1B375E
square
#5E1B59 #5E411B #1B5E20 #1B375E
split-complementary
#5E1B59 #375E1B #1B5E41
monochromatic
#180717 #2E0D2C #5E1B59 #8E2986 #BD36B3

Accessibility & contrast

On white

11.82
#5E1B59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5E1B59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1B59
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1B59#FFFFFF#000000##FFFFFF
##5E1B591.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16325B
Deuteranopia (green-blind)
#2E3B57
Tritanopia (blue-blind)
#622237
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5e1b59;
/* rgb */ color: rgb(94, 27, 89);
/* oklch */ color: oklch(35.5% 0.125 331.0);
Tailwind
colors: {
  custom: {
    50: '#8e5e88',
    500: '#5e1b59',
    950: '#000000',
  },
}
SCSS
$custom: #5e1b59;
$custom-light: #8e5e88;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1b59",
  "rgb": {
    "r": 94,
    "g": 27,
    "b": 89
  },
  "hsl": {
    "h": 304.478,
    "s": 55.372,
    "l": 23.725
  },
  "oklch": {
    "l": 0.35501,
    "c": 0.12481,
    "h": 331
  },
  "luminance": 0.03885
}

Semantic roles & 50–950 ramp

primary
#5E1B59
secondary
#419447
accent
#DF5449
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0D050B
muted
#7D797C

Preview Lab

Preview with #5E1B59

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

Preview Lab → · Contrast checker → · Palette generator →

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