#5E1159#5E1159

#5E1159 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.5% C 0.137 H 331.0°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#5E1159
RGBrgb(94, 17, 89)
HSLhsl(304, 69%, 22%)
HSVhsv(304, 82%, 37%)
CMYKcmyk(0%, 81.9%, 5.3%, 63.1%)
CIE-LABlab(21.95, 42.13, -24.12)
CIE-LCHlch(21.95, 48.54, 330.20°)
OKLaboklab(34.54% 0.1201 -0.0665)
OKLCHoklch(34.54% 0.137 331)
XYZxyz(6.6197, 3.5024, 9.7766)
Luminance0.0350 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1159 #115E16
analogous
#3D115E #5E1159 #5E1133
triadic
#5E1159 #595E11 #11595E
tetradic
#5E1159 #5E3D11 #115E16 #11335E
square
#5E1159 #5E3D11 #115E16 #11335E
split-complementary
#5E1159 #335E11 #115E3D
monochromatic
#1A0519 #2A0828 #5E1159 #921A8A #C624BB

Accessibility & contrast

On white

12.35
#5E1159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5E1159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1159
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1159#FFFFFF#000000##FFFFFF
##5E11591.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082E5B
Deuteranopia (green-blind)
#2A3857
Tritanopia (blue-blind)
#621B34
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5e1159;
/* rgb */ color: rgb(94, 17, 89);
/* oklch */ color: oklch(34.5% 0.137 331.0);
Tailwind
colors: {
  custom: {
    50: '#8f5988',
    500: '#5e1159',
    950: '#000000',
  },
}
SCSS
$custom: #5e1159;
$custom-light: #8f5988;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1159",
  "rgb": {
    "r": 94,
    "g": 17,
    "b": 89
  },
  "hsl": {
    "h": 303.896,
    "s": 69.369,
    "l": 21.765
  },
  "oklch": {
    "l": 0.3454,
    "c": 0.1373,
    "h": 331
  },
  "luminance": 0.03502
}

Semantic roles & 50–950 ramp

primary
#5E1159
secondary
#34973B
accent
#EC473C
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5E1159

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

Preview Lab → · Contrast checker → · Palette generator →

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