#5E1678#5E1678

#5E1678 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.1% C 0.159 H 314.9°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#5E1678
RGBrgb(94, 22, 120)
HSLhsl(284, 69%, 28%)
HSVhsv(284, 82%, 47%)
CMYKcmyk(21.7%, 81.7%, 0%, 52.9%)
CIE-LABlab(24.67, 46.46, -39.97)
CIE-LCHlch(24.67, 61.29, 319.29°)
OKLaboklab(37.15% 0.1125 -0.1129)
OKLCHoklch(37.15% 0.159 314.9)
XYZxyz(8.2926, 4.3099, 18.1607)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1678 #307816
analogous
#2D1678 #5E1678 #781661
triadic
#5E1678 #785E16 #16785E
tetradic
#5E1678 #782D16 #307816 #166178
square
#5E1678 #782D16 #307816 #166178
split-complementary
#5E1678 #617816 #16782D
monochromatic
#14051A #350D44 #5E1678 #871FAC #AC2FD9

Accessibility & contrast

On white

11.28
#5E1678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5E1678 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1678
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1678#FFFFFF#000000##FFFFFF
##5E16781.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377B
Deuteranopia (green-blind)
#103C76
Tritanopia (blue-blind)
#5C2D47
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5e1678;
/* rgb */ color: rgb(94, 22, 120);
/* oklch */ color: oklch(37.1% 0.159 314.9);
Tailwind
colors: {
  custom: {
    50: '#8f5da0',
    500: '#5e1678',
    950: '#000000',
  },
}
SCSS
$custom: #5e1678;
$custom-light: #8f5da0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1678",
  "rgb": {
    "r": 94,
    "g": 22,
    "b": 120
  },
  "hsl": {
    "h": 284.082,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.37148,
    "c": 0.1594,
    "h": 314.9
  },
  "luminance": 0.0431
}

Semantic roles & 50–950 ramp

primary
#5E1678
secondary
#5AAD3C
accent
#EC3C6B
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050F
muted
#7E797E

Preview Lab

Preview with #5E1678

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

Preview Lab → · Contrast checker → · Palette generator →

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