#5E1879#5E1879

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

Color values

HEX#5E1879
RGBrgb(94, 24, 121)
HSLhsl(283, 67%, 28%)
HSVhsv(283, 80%, 47%)
CMYKcmyk(22.3%, 80.2%, 0%, 52.5%)
CIE-LABlab(24.99, 45.96, -40.08)
CIE-LCHlch(24.99, 60.98, 318.90°)
OKLaboklab(37.4% 0.1106 -0.1132)
OKLCHoklch(37.4% 0.158 314.3)
XYZxyz(8.3933, 4.4137, 18.4953)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1879 #337918
analogous
#2D1879 #5E1879 #791863
triadic
#5E1879 #795E18 #18795E
tetradic
#5E1879 #792D18 #337918 #186379
square
#5E1879 #792D18 #337918 #186379
split-complementary
#5E1879 #637918 #18792D
monochromatic
#14051A #360E46 #5E1879 #8622AC #AA35D7

Accessibility & contrast

On white

11.15
#5E1879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1879
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1879#FFFFFF#000000##FFFFFF
##5E18791.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#103D77
Tritanopia (blue-blind)
#5B2F48
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5e1879;
/* rgb */ color: rgb(94, 24, 121);
/* oklch */ color: oklch(37.4% 0.158 314.3);
Tailwind
colors: {
  custom: {
    50: '#8f5ea0',
    500: '#5e1879',
    950: '#000000',
  },
}
SCSS
$custom: #5e1879;
$custom-light: #8f5ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1879",
  "rgb": {
    "r": 94,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 283.299,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.374,
    "c": 0.15825,
    "h": 314.3
  },
  "luminance": 0.04413
}

Semantic roles & 50–950 ramp

primary
#5E1879
secondary
#5EAE3F
accent
#EA3E6E
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050F
muted
#7E797E

Preview Lab

Preview with #5E1879

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

Preview Lab → · Contrast checker → · Palette generator →

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