#5E1781#5E1781

#5E1781 is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.9% C 0.167 H 311.1°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#5E1781
RGBrgb(94, 23, 129)
HSLhsl(280, 70%, 30%)
HSVhsv(280, 82%, 51%)
CMYKcmyk(27.1%, 82.2%, 0%, 49.4%)
CIE-LABlab(25.50, 48.05, -44.34)
CIE-LCHlch(25.50, 65.38, 317.30°)
OKLaboklab(37.95% 0.1098 -0.1257)
OKLCHoklch(37.95% 0.167 311.1)
XYZxyz(8.8842, 4.5777, 21.1802)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1781 #3A8117
analogous
#291781 #5E1781 #81176F
triadic
#5E1781 #815E17 #17815E
tetradic
#5E1781 #812917 #3A8117 #176F81
square
#5E1781 #812917 #3A8117 #176F81
split-complementary
#5E1781 #6F8117 #178129
monochromatic
#13051A #380E4D #5E1781 #8420B5 #A537DB

Accessibility & contrast

On white

10.96
#5E1781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5E1781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1781
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1781#FFFFFF#000000##FFFFFF
##5E17811.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e1781;
/* rgb */ color: rgb(94, 23, 129);
/* oklch */ color: oklch(37.9% 0.167 311.1);
Tailwind
colors: {
  custom: {
    50: '#905ea6',
    500: '#5e1781',
    950: '#000000',
  },
}
SCSS
$custom: #5e1781;
$custom-light: #905ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1781",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 280.189,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.37949,
    "c": 0.16688,
    "h": 311.1
  },
  "luminance": 0.04577
}

Semantic roles & 50–950 ramp

primary
#5E1781
secondary
#66B53E
accent
#ED3B76
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E1781

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

Preview Lab → · Contrast checker → · Palette generator →

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