#5E1A9F#5E1A9F

#5E1A9F is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.8% C 0.193 H 300.7°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#5E1A9F
RGBrgb(94, 26, 159)
HSLhsl(271, 72%, 36%)
HSVhsv(271, 84%, 62%)
CMYKcmyk(40.9%, 83.6%, 0%, 37.6%)
CIE-LABlab(28.44, 53.90, -58.12)
CIE-LCHlch(28.44, 79.26, 312.84°)
OKLaboklab(40.79% 0.0987 -0.1662)
OKLCHoklch(40.79% 0.193 300.7)
XYZxyz(11.2419, 5.6216, 33.2870)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1A9F #5B9F1A
analogous
#1C1A9F #5E1A9F #9F1A9E
triadic
#5E1A9F #9F5E1A #1A9F5E
tetradic
#5E1A9F #9F1C1A #5B9F1A #1A9E9F
square
#5E1A9F #9F1C1A #5B9F1A #1A9E9F
split-complementary
#5E1A9F #9E9F1A #1A9F1C
monochromatic
#200936 #3F116A #5E1A9F #7D23D4 #9B51E3

Accessibility & contrast

On white

9.89
#5E1A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5E1A9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1A9F
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1A9F#FFFFFF#000000##FFFFFF
##5E1A9F1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A3
Deuteranopia (green-blind)
#00429D
Tritanopia (blue-blind)
#4F405E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5e1a9f;
/* rgb */ color: rgb(94, 26, 159);
/* oklch */ color: oklch(40.8% 0.193 300.7);
Tailwind
colors: {
  custom: {
    50: '#9361bc',
    500: '#5e1a9f',
    950: '#000000',
  },
}
SCSS
$custom: #5e1a9f;
$custom-light: #9361bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1a9f",
  "rgb": {
    "r": 94,
    "g": 26,
    "b": 159
  },
  "hsl": {
    "h": 270.677,
    "s": 71.892,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40794,
    "c": 0.1933,
    "h": 300.7
  },
  "luminance": 0.05622
}

Semantic roles & 50–950 ramp

primary
#5E1A9F
secondary
#89C550
accent
#EF3992
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5E1A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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