#5E1158#5E1158

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

Color values

HEX#5E1158
RGBrgb(94, 17, 88)
HSLhsl(305, 69%, 22%)
HSVhsv(305, 82%, 37%)
CMYKcmyk(0%, 81.9%, 6.4%, 63.1%)
CIE-LABlab(21.89, 41.95, -23.55)
CIE-LCHlch(21.89, 48.11, 330.69°)
OKLaboklab(34.48% 0.1201 -0.0649)
OKLCHoklch(34.48% 0.136 331.6)
XYZxyz(6.5780, 3.4857, 9.5570)
Luminance0.0348 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1158 #115E17
analogous
#3E115E #5E1158 #5E1132
triadic
#5E1158 #585E11 #11585E
tetradic
#5E1158 #5E3E11 #115E17 #11325E
square
#5E1158 #5E3E11 #115E17 #11325E
split-complementary
#5E1158 #325E11 #115E3E
monochromatic
#1A0518 #2A0827 #5E1158 #921A89 #C624B9

Accessibility & contrast

On white

12.37
#5E1158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1158
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1158#FFFFFF#000000##FFFFFF
##5E11581.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2E5A
Deuteranopia (green-blind)
#2B3856
Tritanopia (blue-blind)
#621B34
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5e1158;
/* rgb */ color: rgb(94, 17, 88);
/* oklch */ color: oklch(34.5% 0.136 331.6);
Tailwind
colors: {
  custom: {
    50: '#8f5987',
    500: '#5e1158',
    950: '#000000',
  },
}
SCSS
$custom: #5e1158;
$custom-light: #8f5987;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1158",
  "rgb": {
    "r": 94,
    "g": 17,
    "b": 88
  },
  "hsl": {
    "h": 304.675,
    "s": 69.369,
    "l": 21.765
  },
  "oklch": {
    "l": 0.34478,
    "c": 0.13649,
    "h": 331.6
  },
  "luminance": 0.03485
}

Semantic roles & 50–950 ramp

primary
#5E1158
secondary
#34973C
accent
#EC493C
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5E1158

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

Preview Lab → · Contrast checker → · Palette generator →

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