#5E1871#5E1871

#5E1871 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.8% C 0.151 H 317.9°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#5E1871
RGBrgb(94, 24, 113)
HSLhsl(287, 65%, 27%)
HSVhsv(287, 79%, 44%)
CMYKcmyk(16.8%, 78.8%, 0%, 55.7%)
CIE-LABlab(24.40, 44.26, -35.92)
CIE-LCHlch(24.40, 57.00, 320.94°)
OKLaboklab(36.8% 0.1118 -0.101)
OKLCHoklch(36.8% 0.151 317.9)
XYZxyz(7.9229, 4.2256, 16.0179)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1871 #2B7118
analogous
#321871 #5E1871 #711858
triadic
#5E1871 #715E18 #18715E
tetradic
#5E1871 #713218 #2B7118 #185871
square
#5E1871 #713218 #2B7118 #185871
split-complementary
#5E1871 #587118 #187132
monochromatic
#150519 #340D3F #5E1871 #8823A3 #B030D3

Accessibility & contrast

On white

11.38
#5E1871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1871
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1871#FFFFFF#000000##FFFFFF
##5E18711.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#1C3C6F
Tritanopia (blue-blind)
#5D2B44
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5e1871;
/* rgb */ color: rgb(94, 24, 113);
/* oklch */ color: oklch(36.8% 0.151 317.9);
Tailwind
colors: {
  custom: {
    50: '#8f5d9a',
    500: '#5e1871',
    950: '#000000',
  },
}
SCSS
$custom: #5e1871;
$custom-light: #8f5d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1871",
  "rgb": {
    "r": 94,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 287.191,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.36795,
    "c": 0.15069,
    "h": 317.9
  },
  "luminance": 0.04225
}

Semantic roles & 50–950 ramp

primary
#5E1871
secondary
#55A63E
accent
#E84064
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5E1871

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

Preview Lab → · Contrast checker → · Palette generator →

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