#5E1AA0#5E1AA0

#5E1AA0 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.9% C 0.194 H 300.4°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#5E1AA0
RGBrgb(94, 26, 160)
HSLhsl(270, 72%, 36%)
HSVhsv(270, 84%, 63%)
CMYKcmyk(41.3%, 83.8%, 0%, 37.3%)
CIE-LABlab(28.53, 54.14, -58.57)
CIE-LCHlch(28.53, 79.76, 312.74°)
OKLaboklab(40.89% 0.0983 -0.1675)
OKLCHoklch(40.89% 0.194 300.4)
XYZxyz(11.3291, 5.6564, 33.7458)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1AA0 #5CA01A
analogous
#1B1AA0 #5E1AA0 #A01A9F
triadic
#5E1AA0 #A05E1A #1AA05E
tetradic
#5E1AA0 #A01B1A #5CA01A #1A9FA0
square
#5E1AA0 #A01B1A #5CA01A #1A9FA0
split-complementary
#5E1AA0 #9FA01A #1AA01B
monochromatic
#200937 #3F116B #5E1AA0 #7D23D5 #9B52E3

Accessibility & contrast

On white

9.85
#5E1AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5E1AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1AA0
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1AA0#FFFFFF#000000##FFFFFF
##5E1AA01.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A4
Deuteranopia (green-blind)
#00429E
Tritanopia (blue-blind)
#4E415F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5e1aa0;
/* rgb */ color: rgb(94, 26, 160);
/* oklch */ color: oklch(40.9% 0.194 300.4);
Tailwind
colors: {
  custom: {
    50: '#9361bd',
    500: '#5e1aa0',
    950: '#000000',
  },
}
SCSS
$custom: #5e1aa0;
$custom-light: #9361bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1aa0",
  "rgb": {
    "r": 94,
    "g": 26,
    "b": 160
  },
  "hsl": {
    "h": 270.448,
    "s": 72.043,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40885,
    "c": 0.19428,
    "h": 300.4
  },
  "luminance": 0.05657
}

Semantic roles & 50–950 ramp

primary
#5E1AA0
secondary
#8AC550
accent
#EF3993
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5E1AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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