#5E1381#5E1381

#5E1381 is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.6% C 0.171 H 311.4°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#5E1381
RGBrgb(94, 19, 129)
HSLhsl(281, 74%, 29%)
HSVhsv(281, 85%, 51%)
CMYKcmyk(27.1%, 85.3%, 0%, 49.4%)
CIE-LABlab(25.05, 49.36, -45.07)
CIE-LCHlch(25.05, 66.84, 317.60°)
OKLaboklab(37.64% 0.1129 -0.1278)
OKLCHoklch(37.64% 0.171 311.4)
XYZxyz(8.8107, 4.4306, 21.1557)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1381 #368113
analogous
#271381 #5E1381 #81136D
triadic
#5E1381 #815E13 #13815E
tetradic
#5E1381 #812713 #368113 #136D81
square
#5E1381 #812713 #368113 #136D81
split-complementary
#5E1381 #6D8113 #138127
monochromatic
#13041B #370B4C #5E1381 #851BB6 #A82EE0

Accessibility & contrast

On white

11.13
#5E1381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5E1381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1381
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1381#FFFFFF#000000##FFFFFF
##5E13811.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003884
Deuteranopia (green-blind)
#003D7F
Tritanopia (blue-blind)
#59304C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5e1381;
/* rgb */ color: rgb(94, 19, 129);
/* oklch */ color: oklch(37.6% 0.171 311.4);
Tailwind
colors: {
  custom: {
    50: '#905ca6',
    500: '#5e1381',
    950: '#000000',
  },
}
SCSS
$custom: #5e1381;
$custom-light: #905ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1381",
  "rgb": {
    "r": 94,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 280.909,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37635,
    "c": 0.17052,
    "h": 311.4
  },
  "luminance": 0.0443
}

Semantic roles & 50–950 ramp

primary
#5E1381
secondary
#61B63A
accent
#F13772
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E1381

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

Preview Lab → · Contrast checker → · Palette generator →

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