#5E1B79#5E1B79

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

Color values

HEX#5E1B79
RGBrgb(94, 27, 121)
HSLhsl(283, 64%, 29%)
HSVhsv(283, 78%, 47%)
CMYKcmyk(22.3%, 77.7%, 0%, 52.5%)
CIE-LABlab(25.39, 44.81, -39.44)
CIE-LCHlch(25.39, 59.69, 318.65°)
OKLaboklab(37.68% 0.1077 -0.1113)
OKLCHoklch(37.68% 0.155 314)
XYZxyz(8.4586, 4.5443, 18.5170)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1B79 #36791B
analogous
#2F1B79 #5E1B79 #791B65
triadic
#5E1B79 #795E1B #1B795E
tetradic
#5E1B79 #792F1B #36791B #1B6579
square
#5E1B79 #792F1B #36791B #1B6579
split-complementary
#5E1B79 #65791B #1B792F
monochromatic
#130619 #371047 #5E1B79 #8526AB #A83BD3

Accessibility & contrast

On white

11.00
#5E1B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1B79
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1B79#FFFFFF#000000##FFFFFF
##5E1B791.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397C
Deuteranopia (green-blind)
#143E77
Tritanopia (blue-blind)
#5B3049
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5e1b79;
/* rgb */ color: rgb(94, 27, 121);
/* oklch */ color: oklch(37.7% 0.155 314.0);
Tailwind
colors: {
  custom: {
    50: '#8f5fa0',
    500: '#5e1b79',
    950: '#000000',
  },
}
SCSS
$custom: #5e1b79;
$custom-light: #8f5fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1b79",
  "rgb": {
    "r": 94,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 282.766,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37682,
    "c": 0.15491,
    "h": 314
  },
  "luminance": 0.04544
}

Semantic roles & 50–950 ramp

primary
#5E1B79
secondary
#61AD43
accent
#E74171
background
#F9F5F9
surface
#F1EAF2
border
#CBC6CC
text
#0D050F
muted
#7E797E

Preview Lab

Preview with #5E1B79

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

Preview Lab → · Contrast checker → · Palette generator →

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