#5E1778#5E1778

#5E1778 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.2% C 0.158 H 314.8°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#5E1778
RGBrgb(94, 23, 120)
HSLhsl(284, 68%, 28%)
HSVhsv(284, 81%, 47%)
CMYKcmyk(21.7%, 80.8%, 0%, 52.9%)
CIE-LABlab(24.79, 46.11, -39.77)
CIE-LCHlch(24.79, 60.89, 319.22°)
OKLaboklab(37.23% 0.1117 -0.1123)
OKLCHoklch(37.23% 0.158 314.8)
XYZxyz(8.3121, 4.3488, 18.1672)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1778 #317817
analogous
#2E1778 #5E1778 #781761
triadic
#5E1778 #785E17 #17785E
tetradic
#5E1778 #782E17 #317817 #176178
square
#5E1778 #782E17 #317817 #176178
split-complementary
#5E1778 #617817 #17782E
monochromatic
#14051A #360D45 #5E1778 #8621AB #AB32D8

Accessibility & contrast

On white

11.23
#5E1778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5E1778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1778
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1778#FFFFFF#000000##FFFFFF
##5E17781.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e1778;
/* rgb */ color: rgb(94, 23, 120);
/* oklch */ color: oklch(37.2% 0.158 314.8);
Tailwind
colors: {
  custom: {
    50: '#8f5da0',
    500: '#5e1778',
    950: '#000000',
  },
}
SCSS
$custom: #5e1778;
$custom-light: #8f5da0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1778",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 283.918,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.37234,
    "c": 0.15836,
    "h": 314.8
  },
  "luminance": 0.04349
}

Semantic roles & 50–950 ramp

primary
#5E1778
secondary
#5CAD3E
accent
#EB3D6C
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050F
muted
#7E797E

Preview Lab

Preview with #5E1778

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

Preview Lab → · Contrast checker → · Palette generator →

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