#5E1774#5E1774

#5E1774 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 36.9% C 0.155 H 316.6°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#5E1774
RGBrgb(94, 23, 116)
HSLhsl(286, 67%, 27%)
HSVhsv(286, 80%, 45%)
CMYKcmyk(19%, 80.2%, 0%, 54.5%)
CIE-LABlab(24.49, 45.26, -37.70)
CIE-LCHlch(24.49, 58.90, 320.21°)
OKLaboklab(36.93% 0.1123 -0.1062)
OKLCHoklch(36.93% 0.155 316.6)
XYZxyz(8.0744, 4.2538, 16.9153)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1774 #2D7417
analogous
#2F1774 #5E1774 #74175C
triadic
#5E1774 #745E17 #17745E
tetradic
#5E1774 #742F17 #2D7417 #175C74
square
#5E1774 #742F17 #2D7417 #175C74
split-complementary
#5E1774 #5C7417 #17742F
monochromatic
#15051A #350D41 #5E1774 #8721A7 #AF30D6

Accessibility & contrast

On white

11.35
#5E1774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5E1774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1774
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1774#FFFFFF#000000##FFFFFF
##5E17741.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003677
Deuteranopia (green-blind)
#173C72
Tritanopia (blue-blind)
#5D2C45
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5e1774;
/* rgb */ color: rgb(94, 23, 116);
/* oklch */ color: oklch(36.9% 0.155 316.6);
Tailwind
colors: {
  custom: {
    50: '#8f5d9d',
    500: '#5e1774',
    950: '#000000',
  },
}
SCSS
$custom: #5e1774;
$custom-light: #8f5d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1774",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 116
  },
  "hsl": {
    "h": 285.806,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.36928,
    "c": 0.15461,
    "h": 316.6
  },
  "luminance": 0.04253
}

Semantic roles & 50–950 ramp

primary
#5E1774
secondary
#57A93D
accent
#EA3E67
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5E1774

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

Preview Lab → · Contrast checker → · Palette generator →

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