#5E1581#5E1581

#5E1581 is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.8% C 0.169 H 311.3°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#5E1581
RGBrgb(94, 21, 129)
HSLhsl(281, 72%, 29%)
HSVhsv(281, 84%, 51%)
CMYKcmyk(27.1%, 83.7%, 0%, 49.4%)
CIE-LABlab(25.26, 48.73, -44.72)
CIE-LCHlch(25.26, 66.14, 317.46°)
OKLaboklab(37.79% 0.1114 -0.1268)
OKLCHoklch(37.79% 0.169 311.3)
XYZxyz(8.8459, 4.5012, 21.1675)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1581 #388115
analogous
#281581 #5E1581 #81156E
triadic
#5E1581 #815E15 #15815E
tetradic
#5E1581 #812815 #388115 #156E81
square
#5E1581 #812815 #388115 #156E81
split-complementary
#5E1581 #6E8115 #158128
monochromatic
#13041A #380C4C #5E1581 #841EB6 #A633DE

Accessibility & contrast

On white

11.05
#5E1581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5E1581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1581
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1581#FFFFFF#000000##FFFFFF
##5E15811.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003984
Deuteranopia (green-blind)
#003D7F
Tritanopia (blue-blind)
#59314C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5e1581;
/* rgb */ color: rgb(94, 21, 129);
/* oklch */ color: oklch(37.8% 0.169 311.3);
Tailwind
colors: {
  custom: {
    50: '#905da6',
    500: '#5e1581',
    950: '#000000',
  },
}
SCSS
$custom: #5e1581;
$custom-light: #905da6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1581",
  "rgb": {
    "r": 94,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 280.556,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37786,
    "c": 0.16876,
    "h": 311.3
  },
  "luminance": 0.04501
}

Semantic roles & 50–950 ramp

primary
#5E1581
secondary
#63B63C
accent
#EF3974
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E1581

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

Preview Lab → · Contrast checker → · Palette generator →

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