#5E1872#5E1872

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

Color values

HEX#5E1872
RGBrgb(94, 24, 114)
HSLhsl(287, 65%, 27%)
HSVhsv(287, 79%, 45%)
CMYKcmyk(17.5%, 78.9%, 0%, 55.3%)
CIE-LABlab(24.48, 44.47, -36.44)
CIE-LCHlch(24.48, 57.50, 320.67°)
OKLaboklab(36.87% 0.1117 -0.1025)
OKLCHoklch(36.87% 0.152 317.4)
XYZxyz(7.9795, 4.2482, 16.3160)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1872 #2C7218
analogous
#311872 #5E1872 #721859
triadic
#5E1872 #725E18 #18725E
tetradic
#5E1872 #723118 #2C7218 #185972
square
#5E1872 #723118 #2C7218 #185972
split-complementary
#5E1872 #597218 #187231
monochromatic
#150519 #340D3F #5E1872 #8823A5 #AF31D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5E1872#FFFFFF#000000##FFFFFF
##5E18721.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)
#003674
Deuteranopia (green-blind)
#1A3C70
Tritanopia (blue-blind)
#5D2B44
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5e1872;
/* rgb */ color: rgb(94, 24, 114);
/* oklch */ color: oklch(36.9% 0.152 317.4);
Tailwind
colors: {
  custom: {
    50: '#8f5d9b',
    500: '#5e1872',
    950: '#000000',
  },
}
SCSS
$custom: #5e1872;
$custom-light: #8f5d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1872",
  "rgb": {
    "r": 94,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 286.667,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.36869,
    "c": 0.15163,
    "h": 317.4
  },
  "luminance": 0.04248
}

Semantic roles & 50–950 ramp

primary
#5E1872
secondary
#56A73E
accent
#E84065
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5E1872

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

Preview Lab → · Contrast checker → · Palette generator →

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