#5E1F96#5E1F96

#5E1F96 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.180 H 302.9°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#5E1F96
RGBrgb(94, 31, 150)
HSLhsl(272, 66%, 35%)
HSVhsv(272, 79%, 59%)
CMYKcmyk(37.3%, 79.3%, 0%, 41.2%)
CIE-LABlab(28.28, 49.89, -52.87)
CIE-LCHlch(28.28, 72.69, 313.34°)
OKLaboklab(40.44% 0.0976 -0.1509)
OKLCHoklch(40.44% 0.18 302.9)
XYZxyz(10.6098, 5.5617, 29.3628)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1F96 #57961F
analogous
#231F96 #5E1F96 #961F92
triadic
#5E1F96 #965E1F #1F965E
tetradic
#5E1F96 #96231F #57961F #1F9296
square
#5E1F96 #96231F #57961F #1F9296
split-complementary
#5E1F96 #92961F #1F9623
monochromatic
#1E0A31 #3E1563 #5E1F96 #7E29C9 #9C54DC

Accessibility & contrast

On white

9.94
#5E1F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5E1F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1F96
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1F96#FFFFFF#000000##FFFFFF
##5E1F961.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004299
Deuteranopia (green-blind)
#004294
Tritanopia (blue-blind)
#523F5A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5e1f96;
/* rgb */ color: rgb(94, 31, 150);
/* oklch */ color: oklch(40.4% 0.180 302.9);
Tailwind
colors: {
  custom: {
    50: '#9162b6',
    500: '#5e1f96',
    950: '#000000',
  },
}
SCSS
$custom: #5e1f96;
$custom-light: #9162b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1f96",
  "rgb": {
    "r": 94,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 271.765,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40439,
    "c": 0.17967,
    "h": 302.9
  },
  "luminance": 0.05562
}

Semantic roles & 50–950 ramp

primary
#5E1F96
secondary
#85BF52
accent
#E93F8F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E1F96

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

Preview Lab → · Contrast checker → · Palette generator →

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