#5E1878#5E1878

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

Color values

HEX#5E1878
RGBrgb(94, 24, 120)
HSLhsl(284, 67%, 28%)
HSVhsv(284, 80%, 47%)
CMYKcmyk(21.7%, 80%, 0%, 52.9%)
CIE-LABlab(24.92, 45.74, -39.57)
CIE-LCHlch(24.92, 60.48, 319.14°)
OKLaboklab(37.32% 0.1107 -0.1117)
OKLCHoklch(37.32% 0.157 314.8)
XYZxyz(8.3323, 4.3893, 18.1740)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1878 #327818
analogous
#2E1878 #5E1878 #781862
triadic
#5E1878 #785E18 #18785E
tetradic
#5E1878 #782E18 #327818 #186278
square
#5E1878 #782E18 #327818 #186278
split-complementary
#5E1878 #627818 #18782E
monochromatic
#14051A #360E45 #5E1878 #8622AB #AA34D6

Accessibility & contrast

On white

11.18
#5E1878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1878
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1878#FFFFFF#000000##FFFFFF
##5E18781.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377B
Deuteranopia (green-blind)
#123D76
Tritanopia (blue-blind)
#5C2E48
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5e1878;
/* rgb */ color: rgb(94, 24, 120);
/* oklch */ color: oklch(37.3% 0.157 314.8);
Tailwind
colors: {
  custom: {
    50: '#8f5ea0',
    500: '#5e1878',
    950: '#000000',
  },
}
SCSS
$custom: #5e1878;
$custom-light: #8f5ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1878",
  "rgb": {
    "r": 94,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 283.75,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37322,
    "c": 0.1573,
    "h": 314.8
  },
  "luminance": 0.04389
}

Semantic roles & 50–950 ramp

primary
#5E1878
secondary
#5DAD3F
accent
#EA3E6D
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050F
muted
#7E797E

Preview Lab

Preview with #5E1878

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

Preview Lab → · Contrast checker → · Palette generator →

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