#5E1A79#5E1A79

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

Color values

HEX#5E1A79
RGBrgb(94, 26, 121)
HSLhsl(283, 65%, 29%)
HSVhsv(283, 79%, 47%)
CMYKcmyk(22.3%, 78.5%, 0%, 52.5%)
CIE-LABlab(25.26, 45.20, -39.66)
CIE-LCHlch(25.26, 60.13, 318.74°)
OKLaboklab(37.59% 0.1087 -0.112)
OKLCHoklch(37.59% 0.156 314.1)
XYZxyz(8.4361, 4.4992, 18.5095)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1A79 #35791A
analogous
#2F1A79 #5E1A79 #791A65
triadic
#5E1A79 #795E1A #1A795E
tetradic
#5E1A79 #792F1A #35791A #1A6579
square
#5E1A79 #792F1A #35791A #1A6579
split-complementary
#5E1A79 #65791A #1A792F
monochromatic
#140519 #370F47 #5E1A79 #8525AB #A839D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5E1A79#FFFFFF#000000##FFFFFF
##5E1A791.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)
#00387C
Deuteranopia (green-blind)
#133D77
Tritanopia (blue-blind)
#5B3049
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5e1a79;
/* rgb */ color: rgb(94, 26, 121);
/* oklch */ color: oklch(37.6% 0.156 314.1);
Tailwind
colors: {
  custom: {
    50: '#8f5fa0',
    500: '#5e1a79',
    950: '#000000',
  },
}
SCSS
$custom: #5e1a79;
$custom-light: #8f5fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1a79",
  "rgb": {
    "r": 94,
    "g": 26,
    "b": 121
  },
  "hsl": {
    "h": 282.947,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37585,
    "c": 0.15605,
    "h": 314.1
  },
  "luminance": 0.04499
}

Semantic roles & 50–950 ramp

primary
#5E1A79
secondary
#60AD41
accent
#E84070
background
#F9F5F9
surface
#F1EAF2
border
#CBC6CC
text
#0D050F
muted
#7E797E

Preview Lab

Preview with #5E1A79

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

Preview Lab → · Contrast checker → · Palette generator →

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