#5E1372#5E1372

#5E1372 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.4% C 0.157 H 317.8°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#5E1372
RGBrgb(94, 19, 114)
HSLhsl(287, 71%, 26%)
HSVhsv(287, 83%, 45%)
CMYKcmyk(17.5%, 83.3%, 0%, 55.3%)
CIE-LABlab(23.87, 46.22, -37.42)
CIE-LCHlch(23.87, 59.47, 321.00°)
OKLaboklab(36.44% 0.1162 -0.1054)
OKLCHoklch(36.44% 0.157 317.8)
XYZxyz(7.8858, 4.0607, 16.2847)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1372 #277213
analogous
#2E1372 #5E1372 #721356
triadic
#5E1372 #725E13 #13725E
tetradic
#5E1372 #722E13 #277213 #135672
square
#5E1372 #722E13 #277213 #135672
split-complementary
#5E1372 #567213 #13722E
monochromatic
#16041A #330A3E #5E1372 #891CA6 #B425DB

Accessibility & contrast

On white

11.59
#5E1372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5E1372 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1372
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1372#FFFFFF#000000##FFFFFF
##5E13721.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003475
Deuteranopia (green-blind)
#173B70
Tritanopia (blue-blind)
#5D2943
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5e1372;
/* rgb */ color: rgb(94, 19, 114);
/* oklch */ color: oklch(36.4% 0.157 317.8);
Tailwind
colors: {
  custom: {
    50: '#8f5b9b',
    500: '#5e1372',
    950: '#000000',
  },
}
SCSS
$custom: #5e1372;
$custom-light: #8f5b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1372",
  "rgb": {
    "r": 94,
    "g": 19,
    "b": 114
  },
  "hsl": {
    "h": 287.368,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.36442,
    "c": 0.15685,
    "h": 317.8
  },
  "luminance": 0.0406
}

Semantic roles & 50–950 ramp

primary
#5E1372
secondary
#50A938
accent
#EE3A60
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5E1372

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

Preview Lab → · Contrast checker → · Palette generator →

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