#5E2371#5E2371

#5E2371 is a dark, vivid purple. Relative luminance 0.048; OKLCH L 38.0% C 0.136 H 316.9°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#5E2371
RGBrgb(94, 35, 113)
HSLhsl(285, 53%, 29%)
HSVhsv(285, 69%, 44%)
CMYKcmyk(16.8%, 69%, 0%, 55.7%)
CIE-LABlab(26.08, 39.52, -33.22)
CIE-LCHlch(26.08, 51.63, 319.95°)
OKLaboklab(37.99% 0.0995 -0.0932)
OKLCHoklch(37.99% 0.136 316.9)
XYZxyz(8.1973, 4.7743, 16.1093)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2371 #367123
analogous
#372371 #5E2371 #71235D
triadic
#5E2371 #715E23 #23715E
tetradic
#5E2371 #713723 #367123 #235D71
square
#5E2371 #713723 #367123 #235D71
split-complementary
#5E2371 #5D7123 #237137
monochromatic
#130717 #371542 #5E2371 #8531A0 #A848C6

Accessibility & contrast

On white

10.74
#5E2371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5E2371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2371
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2371#FFFFFF#000000##FFFFFF
##5E23711.0010.741.9510.74
#FFFFFF10.741.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033A73
Deuteranopia (green-blind)
#243F6F
Tritanopia (blue-blind)
#5D3147
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e2371;
/* rgb */ color: rgb(94, 35, 113);
/* oklch */ color: oklch(38.0% 0.136 316.9);
Tailwind
colors: {
  custom: {
    50: '#8e639a',
    500: '#5e2371',
    950: '#000000',
  },
}
SCSS
$custom: #5e2371;
$custom-light: #8e639a;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2371",
  "rgb": {
    "r": 94,
    "g": 35,
    "b": 113
  },
  "hsl": {
    "h": 285.385,
    "s": 52.703,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37993,
    "c": 0.13635,
    "h": 316.9
  },
  "luminance": 0.04774
}

Semantic roles & 50–950 ramp

primary
#5E2371
secondary
#61A44C
accent
#DC4C6F
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0D050E
muted
#7D7A7E

Preview Lab

Preview with #5E2371

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

Preview Lab → · Contrast checker → · Palette generator →

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