#5E1978#5E1978

#5E1978 is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.4% C 0.156 H 314.7°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#5E1978
RGBrgb(94, 25, 120)
HSLhsl(284, 66%, 28%)
HSVhsv(284, 79%, 47%)
CMYKcmyk(21.7%, 79.2%, 0%, 52.9%)
CIE-LABlab(25.05, 45.37, -39.36)
CIE-LCHlch(25.05, 60.06, 319.06°)
OKLaboklab(37.41% 0.1098 -0.1111)
OKLCHoklch(37.41% 0.156 314.7)
XYZxyz(8.3533, 4.4313, 18.1810)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1978 #337819
analogous
#2E1978 #5E1978 #781962
triadic
#5E1978 #785E19 #19785E
tetradic
#5E1978 #782E19 #337819 #196278
square
#5E1978 #782E19 #337819 #196278
split-complementary
#5E1978 #627819 #19782E
monochromatic
#140519 #360E45 #5E1978 #8624AB #AA36D5

Accessibility & contrast

On white

11.13
#5E1978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5E1978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1978
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1978#FFFFFF#000000##FFFFFF
##5E19781.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387B
Deuteranopia (green-blind)
#133D76
Tritanopia (blue-blind)
#5C2F48
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5e1978;
/* rgb */ color: rgb(94, 25, 120);
/* oklch */ color: oklch(37.4% 0.156 314.7);
Tailwind
colors: {
  custom: {
    50: '#8f5ea0',
    500: '#5e1978',
    950: '#000000',
  },
}
SCSS
$custom: #5e1978;
$custom-light: #8f5ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1978",
  "rgb": {
    "r": 94,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 283.579,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37414,
    "c": 0.15621,
    "h": 314.7
  },
  "luminance": 0.04431
}

Semantic roles & 50–950 ramp

primary
#5E1978
secondary
#5EAD40
accent
#E83F6E
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050F
muted
#7E797E

Preview Lab

Preview with #5E1978

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

Preview Lab → · Contrast checker → · Palette generator →

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