#5E1D78#5E1D78

#5E1D78 is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.8% C 0.152 H 314.3°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#5E1D78
RGBrgb(94, 29, 120)
HSLhsl(283, 61%, 29%)
HSVhsv(283, 76%, 47%)
CMYKcmyk(21.7%, 75.8%, 0%, 52.9%)
CIE-LABlab(25.61, 43.77, -38.46)
CIE-LCHlch(25.61, 58.26, 318.70°)
OKLaboklab(37.81% 0.1058 -0.1085)
OKLCHoklch(37.81% 0.152 314.3)
XYZxyz(8.4451, 4.6148, 18.2115)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1D78 #37781D
analogous
#311D78 #5E1D78 #781D65
triadic
#5E1D78 #785E1D #1D785E
tetradic
#5E1D78 #78311D #37781D #1D6578
square
#5E1D78 #78311D #37781D #1D6578
split-complementary
#5E1D78 #65781D #1D7831
monochromatic
#130619 #371147 #5E1D78 #8529A9 #A73FD1

Accessibility & contrast

On white

10.92
#5E1D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5E1D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1D78
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1D78#FFFFFF#000000##FFFFFF
##5E1D781.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397B
Deuteranopia (green-blind)
#183E76
Tritanopia (blue-blind)
#5C3149
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5e1d78;
/* rgb */ color: rgb(94, 29, 120);
/* oklch */ color: oklch(37.8% 0.152 314.3);
Tailwind
colors: {
  custom: {
    50: '#8f609f',
    500: '#5e1d78',
    950: '#000000',
  },
}
SCSS
$custom: #5e1d78;
$custom-light: #8f609f;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1d78",
  "rgb": {
    "r": 94,
    "g": 29,
    "b": 120
  },
  "hsl": {
    "h": 282.857,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3781,
    "c": 0.15154,
    "h": 314.3
  },
  "luminance": 0.04614
}

Semantic roles & 50–950 ramp

primary
#5E1D78
secondary
#62AC45
accent
#E44471
background
#F9F5F9
surface
#F1EAF2
border
#CBC6CC
text
#0D050F
muted
#7E797E

Preview Lab

Preview with #5E1D78

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

Preview Lab → · Contrast checker → · Palette generator →

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