#5E1C71#5E1C71

#5E1C71 is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.2% C 0.146 H 317.6°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#5E1C71
RGBrgb(94, 28, 113)
HSLhsl(287, 60%, 28%)
HSVhsv(287, 75%, 44%)
CMYKcmyk(16.8%, 75.2%, 0%, 55.7%)
CIE-LABlab(24.96, 42.67, -35.02)
CIE-LCHlch(24.96, 55.20, 320.62°)
OKLaboklab(37.19% 0.1077 -0.0984)
OKLCHoklch(37.19% 0.146 317.6)
XYZxyz(8.0116, 4.4028, 16.0474)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1C71 #2F711C
analogous
#331C71 #5E1C71 #711C5A
triadic
#5E1C71 #715E1C #1C715E
tetradic
#5E1C71 #71331C #2F711C #1C5A71
square
#5E1C71 #71331C #2F711C #1C5A71
split-complementary
#5E1C71 #5A711C #1C7133
monochromatic
#140619 #351040 #5E1C71 #8728A2 #AD39CE

Accessibility & contrast

On white

11.17
#5E1C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5E1C71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1C71
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1C71#FFFFFF#000000##FFFFFF
##5E1C711.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#1F3D6F
Tritanopia (blue-blind)
#5D2D45
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5e1c71;
/* rgb */ color: rgb(94, 28, 113);
/* oklch */ color: oklch(37.2% 0.146 317.6);
Tailwind
colors: {
  custom: {
    50: '#8f5f9a',
    500: '#5e1c71',
    950: '#000000',
  },
}
SCSS
$custom: #5e1c71;
$custom-light: #8f5f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1c71",
  "rgb": {
    "r": 94,
    "g": 28,
    "b": 113
  },
  "hsl": {
    "h": 286.588,
    "s": 60.284,
    "l": 27.647
  },
  "oklch": {
    "l": 0.37191,
    "c": 0.14589,
    "h": 317.6
  },
  "luminance": 0.04402
}

Semantic roles & 50–950 ramp

primary
#5E1C71
secondary
#59A643
accent
#E34468
background
#F9F5F9
surface
#F1EAF2
border
#CBC6CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5E1C71

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

Preview Lab → · Contrast checker → · Palette generator →

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