#5E1580#5E1580

#5E1580 is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.7% C 0.168 H 311.7°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#5E1580
RGBrgb(94, 21, 128)
HSLhsl(281, 72%, 29%)
HSVhsv(281, 84%, 50%)
CMYKcmyk(26.6%, 83.6%, 0%, 49.8%)
CIE-LABlab(25.18, 48.51, -44.22)
CIE-LCHlch(25.18, 65.64, 317.65°)
OKLaboklab(37.7% 0.1116 -0.1253)
OKLCHoklch(37.7% 0.168 311.7)
XYZxyz(8.7798, 4.4748, 20.8191)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1580 #378015
analogous
#291580 #5E1580 #80156D
triadic
#5E1580 #805E15 #15805E
tetradic
#5E1580 #802915 #378015 #156D80
square
#5E1580 #802915 #378015 #156D80
split-complementary
#5E1580 #6D8015 #158029
monochromatic
#13041A #370C4B #5E1580 #851EB5 #A732DD

Accessibility & contrast

On white

11.08
#5E1580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1580
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1580#FFFFFF#000000##FFFFFF
##5E15801.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003883
Deuteranopia (green-blind)
#003D7E
Tritanopia (blue-blind)
#5A304C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5e1580;
/* rgb */ color: rgb(94, 21, 128);
/* oklch */ color: oklch(37.7% 0.168 311.7);
Tailwind
colors: {
  custom: {
    50: '#905da6',
    500: '#5e1580',
    950: '#000000',
  },
}
SCSS
$custom: #5e1580;
$custom-light: #905da6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1580",
  "rgb": {
    "r": 94,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 280.935,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37704,
    "c": 0.16783,
    "h": 311.7
  },
  "luminance": 0.04475
}

Semantic roles & 50–950 ramp

primary
#5E1580
secondary
#62B53C
accent
#EF3973
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E1580

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

Preview Lab → · Contrast checker → · Palette generator →

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