#5E1AA1#5E1AA1

#5E1AA1 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 41.0% C 0.195 H 300.1°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#5E1AA1
RGBrgb(94, 26, 161)
HSLhsl(270, 72%, 37%)
HSVhsv(270, 84%, 63%)
CMYKcmyk(41.6%, 83.9%, 0%, 36.9%)
CIE-LABlab(28.62, 54.37, -59.03)
CIE-LCHlch(28.62, 80.26, 312.65°)
OKLaboklab(40.98% 0.098 -0.1689)
OKLCHoklch(40.98% 0.195 300.1)
XYZxyz(11.4169, 5.6916, 34.2084)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1AA1 #5DA11A
analogous
#1A1AA1 #5E1AA1 #A11AA1
triadic
#5E1AA1 #A15E1A #1AA15E
tetradic
#5E1AA1 #A11A1A #5DA11A #1AA1A1
square
#5E1AA1 #A11A1A #5DA11A #1AA1A1
split-complementary
#5E1AA1 #A1A11A #1AA11A
monochromatic
#200938 #3F116C #5E1AA1 #7D23D6 #9B52E3

Accessibility & contrast

On white

9.82
#5E1AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5E1AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1AA1
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1AA1#FFFFFF#000000##FFFFFF
##5E1AA11.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A5
Deuteranopia (green-blind)
#00429F
Tritanopia (blue-blind)
#4E4160
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5e1aa1;
/* rgb */ color: rgb(94, 26, 161);
/* oklch */ color: oklch(41.0% 0.195 300.1);
Tailwind
colors: {
  custom: {
    50: '#9361be',
    500: '#5e1aa1',
    950: '#000000',
  },
}
SCSS
$custom: #5e1aa1;
$custom-light: #9361be;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1aa1",
  "rgb": {
    "r": 94,
    "g": 26,
    "b": 161
  },
  "hsl": {
    "h": 270.222,
    "s": 72.193,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40977,
    "c": 0.19526,
    "h": 300.1
  },
  "luminance": 0.05692
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5E1AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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