#5E1A91#5E1A91

#5E1A91 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.180 H 305.0°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#5E1A91
RGBrgb(94, 26, 145)
HSLhsl(274, 70%, 34%)
HSVhsv(274, 82%, 57%)
CMYKcmyk(35.2%, 82.1%, 0%, 43.1%)
CIE-LABlab(27.19, 50.61, -51.56)
CIE-LCHlch(27.19, 72.25, 314.47°)
OKLaboklab(39.55% 0.1031 -0.147)
OKLCHoklch(39.55% 0.18 305)
XYZxyz(10.0952, 5.1629, 27.2473)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1A91 #4D911A
analogous
#221A91 #5E1A91 #911A88
triadic
#5E1A91 #915E1A #1A915E
tetradic
#5E1A91 #91221A #4D911A #1A8891
square
#5E1A91 #91221A #4D911A #1A8891
split-complementary
#5E1A91 #88911A #1A9122
monochromatic
#1B0729 #3C115D #5E1A91 #8023C5 #9D47DE

Accessibility & contrast

On white

10.33
#5E1A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5E1A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1A91
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1A91#FFFFFF#000000##FFFFFF
##5E1A911.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F94
Deuteranopia (green-blind)
#00408F
Tritanopia (blue-blind)
#543A56
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5e1a91;
/* rgb */ color: rgb(94, 26, 145);
/* oklch */ color: oklch(39.5% 0.180 305.0);
Tailwind
colors: {
  custom: {
    50: '#9160b2',
    500: '#5e1a91',
    950: '#000000',
  },
}
SCSS
$custom: #5e1a91;
$custom-light: #9160b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1a91",
  "rgb": {
    "r": 94,
    "g": 26,
    "b": 145
  },
  "hsl": {
    "h": 274.286,
    "s": 69.591,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39549,
    "c": 0.17951,
    "h": 305
  },
  "luminance": 0.05163
}

Semantic roles & 50–950 ramp

primary
#5E1A91
secondary
#7BC047
accent
#EC3B87
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5E1A91

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

Preview Lab → · Contrast checker → · Palette generator →

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