#5E1987#5E1987

#5E1987 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.171 H 308.6°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#5E1987
RGBrgb(94, 25, 135)
HSLhsl(278, 69%, 31%)
HSVhsv(278, 81%, 53%)
CMYKcmyk(30.4%, 81.5%, 0%, 47.1%)
CIE-LABlab(26.23, 48.68, -46.92)
CIE-LCHlch(26.23, 67.61, 316.06°)
OKLaboklab(38.61% 0.1066 -0.1333)
OKLCHoklch(38.61% 0.171 308.6)
XYZxyz(9.3360, 4.8244, 23.3564)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1987 #428719
analogous
#271987 #5E1987 #871979
triadic
#5E1987 #875E19 #19875E
tetradic
#5E1987 #872719 #428719 #197987
square
#5E1987 #872719 #428719 #197987
split-complementary
#5E1987 #798719 #198727
monochromatic
#160620 #3A0F53 #5E1987 #8223BB #A13FDB

Accessibility & contrast

On white

10.69
#5E1987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1987
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1987#FFFFFF#000000##FFFFFF
##5E19871.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e1987;
/* rgb */ color: rgb(94, 25, 135);
/* oklch */ color: oklch(38.6% 0.171 308.6);
Tailwind
colors: {
  custom: {
    50: '#905fab',
    500: '#5e1987',
    950: '#000000',
  },
}
SCSS
$custom: #5e1987;
$custom-light: #905fab;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1987",
  "rgb": {
    "r": 94,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 277.636,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38614,
    "c": 0.1707,
    "h": 308.6
  },
  "luminance": 0.04824
}

Semantic roles & 50–950 ramp

primary
#5E1987
secondary
#6EBA41
accent
#EC3C7E
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1987

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

Preview Lab → · Contrast checker → · Palette generator →

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