#5E1771#5E1771

#5E1771 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.7% C 0.152 H 318.0°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#5E1771
RGBrgb(94, 23, 113)
HSLhsl(287, 66%, 27%)
HSVhsv(287, 80%, 44%)
CMYKcmyk(16.8%, 79.6%, 0%, 55.7%)
CIE-LABlab(24.27, 44.64, -36.13)
CIE-LCHlch(24.27, 57.42, 321.01°)
OKLaboklab(36.7% 0.1128 -0.1016)
OKLCHoklch(36.7% 0.152 318)
XYZxyz(7.9027, 4.1851, 16.0111)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1771 #2A7117
analogous
#311771 #5E1771 #711757
triadic
#5E1771 #715E17 #17715E
tetradic
#5E1771 #713117 #2A7117 #175771
square
#5E1771 #713117 #2A7117 #175771
split-complementary
#5E1771 #577117 #177131
monochromatic
#150519 #340D3E #5E1771 #8821A4 #B12ED4

Accessibility & contrast

On white

11.43
#5E1771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5E1771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1771
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1771#FFFFFF#000000##FFFFFF
##5E17711.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#1B3C6F
Tritanopia (blue-blind)
#5D2A43
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5e1771;
/* rgb */ color: rgb(94, 23, 113);
/* oklch */ color: oklch(36.7% 0.152 318.0);
Tailwind
colors: {
  custom: {
    50: '#8f5d9a',
    500: '#5e1771',
    950: '#000000',
  },
}
SCSS
$custom: #5e1771;
$custom-light: #8f5d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1771",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 287.333,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.36703,
    "c": 0.1518,
    "h": 318
  },
  "luminance": 0.04185
}

Semantic roles & 50–950 ramp

primary
#5E1771
secondary
#53A73D
accent
#E93F63
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5E1771

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

Preview Lab → · Contrast checker → · Palette generator →

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