#5E1986#5E1986

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

Color values

HEX#5E1986
RGBrgb(94, 25, 134)
HSLhsl(278, 69%, 31%)
HSVhsv(278, 81%, 53%)
CMYKcmyk(29.9%, 81.3%, 0%, 47.5%)
CIE-LABlab(26.15, 48.45, -46.42)
CIE-LCHlch(26.15, 67.10, 316.23°)
OKLaboklab(38.53% 0.1069 -0.1319)
OKLCHoklch(38.53% 0.17 309)
XYZxyz(9.2659, 4.7963, 22.9873)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1986 #418619
analogous
#281986 #5E1986 #861977
triadic
#5E1986 #865E19 #19865E
tetradic
#5E1986 #862819 #418619 #197786
square
#5E1986 #862819 #418619 #197786
split-complementary
#5E1986 #778619 #198628
monochromatic
#16061F #3A0F52 #5E1986 #8223BA #A23EDB

Accessibility & contrast

On white

10.72
#5E1986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1986
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1986#FFFFFF#000000##FFFFFF
##5E19861.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e1986;
/* rgb */ color: rgb(94, 25, 134);
/* oklch */ color: oklch(38.5% 0.170 309.0);
Tailwind
colors: {
  custom: {
    50: '#905faa',
    500: '#5e1986',
    950: '#000000',
  },
}
SCSS
$custom: #5e1986;
$custom-light: #905faa;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1986",
  "rgb": {
    "r": 94,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 277.982,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38531,
    "c": 0.16972,
    "h": 309
  },
  "luminance": 0.04796
}

Semantic roles & 50–950 ramp

primary
#5E1986
secondary
#6DBA41
accent
#EB3C7D
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1986

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

Preview Lab → · Contrast checker → · Palette generator →

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