#5E1780#5E1780

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

Color values

HEX#5E1780
RGBrgb(94, 23, 128)
HSLhsl(281, 70%, 30%)
HSVhsv(281, 82%, 50%)
CMYKcmyk(26.6%, 82%, 0%, 49.8%)
CIE-LABlab(25.42, 47.83, -43.84)
CIE-LCHlch(25.42, 64.88, 317.50°)
OKLaboklab(37.87% 0.11 -0.1242)
OKLCHoklch(37.87% 0.166 311.5)
XYZxyz(8.8180, 4.5512, 20.8318)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1780 #398017
analogous
#291780 #5E1780 #80176E
triadic
#5E1780 #805E17 #17805E
tetradic
#5E1780 #802917 #398017 #176E80
square
#5E1780 #802917 #398017 #176E80
split-complementary
#5E1780 #6E8017 #178029
monochromatic
#13051A #380E4C #5E1780 #8420B4 #A636DB

Accessibility & contrast

On white

10.99
#5E1780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5E1780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1780
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1780#FFFFFF#000000##FFFFFF
##5E17801.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e1780;
/* rgb */ color: rgb(94, 23, 128);
/* oklch */ color: oklch(37.9% 0.166 311.5);
Tailwind
colors: {
  custom: {
    50: '#905ea6',
    500: '#5e1780',
    950: '#000000',
  },
}
SCSS
$custom: #5e1780;
$custom-light: #905ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1780",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 280.571,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37868,
    "c": 0.16593,
    "h": 311.5
  },
  "luminance": 0.04551
}

Semantic roles & 50–950 ramp

primary
#5E1780
secondary
#65B43E
accent
#EC3B75
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E1780

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

Preview Lab → · Contrast checker → · Palette generator →

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