#5E1A84#5E1A84

#5E1A84 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.167 H 309.7°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#5E1A84
RGBrgb(94, 26, 132)
HSLhsl(278, 67%, 31%)
HSVhsv(278, 80%, 52%)
CMYKcmyk(28.8%, 80.3%, 0%, 48.2%)
CIE-LABlab(26.11, 47.63, -45.23)
CIE-LCHlch(26.11, 65.68, 316.49°)
OKLaboklab(38.46% 0.1065 -0.1283)
OKLCHoklch(38.46% 0.167 309.7)
XYZxyz(9.1495, 4.7846, 22.2669)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1A84 #40841A
analogous
#291A84 #5E1A84 #841A75
triadic
#5E1A84 #845E1A #1A845E
tetradic
#5E1A84 #84291A #40841A #1A7584
square
#5E1A84 #84291A #40841A #1A7584
split-complementary
#5E1A84 #75841A #1A8429
monochromatic
#15061E #3A1051 #5E1A84 #8224B7 #A23FD9

Accessibility & contrast

On white

10.73
#5E1A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5E1A84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1A84
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1A84#FFFFFF#000000##FFFFFF
##5E1A841.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B87
Deuteranopia (green-blind)
#003F82
Tritanopia (blue-blind)
#58344F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e1a84;
/* rgb */ color: rgb(94, 26, 132);
/* oklch */ color: oklch(38.5% 0.167 309.7);
Tailwind
colors: {
  custom: {
    50: '#905fa9',
    500: '#5e1a84',
    950: '#000000',
  },
}
SCSS
$custom: #5e1a84;
$custom-light: #905fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1a84",
  "rgb": {
    "r": 94,
    "g": 26,
    "b": 132
  },
  "hsl": {
    "h": 278.491,
    "s": 67.089,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38456,
    "c": 0.16677,
    "h": 309.7
  },
  "luminance": 0.04784
}

Semantic roles & 50–950 ramp

primary
#5E1A84
secondary
#6CB842
accent
#EA3E7C
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1A84

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

Preview Lab → · Contrast checker → · Palette generator →

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