#5E1976#5E1976

#5E1976 is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.3% C 0.154 H 315.5°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#5E1976
RGBrgb(94, 25, 118)
HSLhsl(285, 65%, 28%)
HSVhsv(285, 79%, 46%)
CMYKcmyk(20.3%, 78.8%, 0%, 53.7%)
CIE-LABlab(24.90, 44.94, -38.32)
CIE-LCHlch(24.90, 59.06, 319.54°)
OKLaboklab(37.26% 0.1101 -0.1081)
OKLCHoklch(37.26% 0.154 315.5)
XYZxyz(8.2332, 4.3833, 17.5484)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1976 #317619
analogous
#2F1976 #5E1976 #76195F
triadic
#5E1976 #765E19 #19765E
tetradic
#5E1976 #762F19 #317619 #195F76
square
#5E1976 #762F19 #317619 #195F76
split-complementary
#5E1976 #5F7619 #19762F
monochromatic
#140519 #360E43 #5E1976 #8624A8 #AB35D4

Accessibility & contrast

On white

11.19
#5E1976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5E1976 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1976
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1976#FFFFFF#000000##FFFFFF
##5E19761.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003779
Deuteranopia (green-blind)
#163D74
Tritanopia (blue-blind)
#5C2E47
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5e1976;
/* rgb */ color: rgb(94, 25, 118);
/* oklch */ color: oklch(37.3% 0.154 315.5);
Tailwind
colors: {
  custom: {
    50: '#8f5e9e',
    500: '#5e1976',
    950: '#000000',
  },
}
SCSS
$custom: #5e1976;
$custom-light: #8f5e9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1976",
  "rgb": {
    "r": 94,
    "g": 25,
    "b": 118
  },
  "hsl": {
    "h": 284.516,
    "s": 65.035,
    "l": 28.039
  },
  "oklch": {
    "l": 0.37262,
    "c": 0.1543,
    "h": 315.5
  },
  "luminance": 0.04383
}

Semantic roles & 50–950 ramp

primary
#5E1976
secondary
#5CAB40
accent
#E8406B
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5E1976

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

Preview Lab → · Contrast checker → · Palette generator →

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