#5E1887#5E1887

#5E1887 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.172 H 308.7°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#5E1887
RGBrgb(94, 24, 135)
HSLhsl(278, 70%, 31%)
HSVhsv(278, 82%, 53%)
CMYKcmyk(30.4%, 82.2%, 0%, 47.1%)
CIE-LABlab(26.11, 49.04, -47.12)
CIE-LCHlch(26.11, 68.00, 316.14°)
OKLaboklab(38.53% 0.1074 -0.1339)
OKLCHoklch(38.53% 0.172 308.7)
XYZxyz(9.3150, 4.7824, 23.3494)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1887 #418718
analogous
#261887 #5E1887 #871878
triadic
#5E1887 #875E18 #18875E
tetradic
#5E1887 #872618 #418718 #187887
square
#5E1887 #872618 #418718 #187887
split-complementary
#5E1887 #788718 #188726
monochromatic
#16061F #3A0F53 #5E1887 #8221BB #A23DDC

Accessibility & contrast

On white

10.73
#5E1887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5E1887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1887
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1887#FFFFFF#000000##FFFFFF
##5E18871.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003F85
Tritanopia (blue-blind)
#583550
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e1887;
/* rgb */ color: rgb(94, 24, 135);
/* oklch */ color: oklch(38.5% 0.172 308.7);
Tailwind
colors: {
  custom: {
    50: '#905fab',
    500: '#5e1887',
    950: '#000000',
  },
}
SCSS
$custom: #5e1887;
$custom-light: #905fab;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1887",
  "rgb": {
    "r": 94,
    "g": 24,
    "b": 135
  },
  "hsl": {
    "h": 277.838,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38528,
    "c": 0.17166,
    "h": 308.7
  },
  "luminance": 0.04782
}

Semantic roles & 50–950 ramp

primary
#5E1887
secondary
#6DBB40
accent
#ED3B7D
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1887

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

Preview Lab → · Contrast checker → · Palette generator →

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