#5E1996#5E1996

#5E1996 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.185 H 303.5°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#5E1996
RGBrgb(94, 25, 150)
HSLhsl(273, 71%, 34%)
HSVhsv(273, 83%, 59%)
CMYKcmyk(37.3%, 83.3%, 0%, 41.2%)
CIE-LABlab(27.51, 52.12, -54.13)
CIE-LCHlch(27.51, 75.14, 313.92°)
OKLaboklab(39.9% 0.1023 -0.1545)
OKLCHoklch(39.9% 0.185 303.5)
XYZxyz(10.4674, 5.2770, 29.3153)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1996 #519619
analogous
#1F1996 #5E1996 #961990
triadic
#5E1996 #965E19 #19965E
tetradic
#5E1996 #961F19 #519619 #199096
square
#5E1996 #961F19 #519619 #199096
split-complementary
#5E1996 #909619 #19961F
monochromatic
#1C082D #3D1062 #5E1996 #7F22CA #9D49E1

Accessibility & contrast

On white

10.22
#5E1996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5E1996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1996
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1996#FFFFFF#000000##FFFFFF
##5E19961.0010.222.0610.22
#FFFFFF10.221.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004099
Deuteranopia (green-blind)
#004194
Tritanopia (blue-blind)
#523C59
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5e1996;
/* rgb */ color: rgb(94, 25, 150);
/* oklch */ color: oklch(39.9% 0.185 303.5);
Tailwind
colors: {
  custom: {
    50: '#9260b6',
    500: '#5e1996',
    950: '#000000',
  },
}
SCSS
$custom: #5e1996;
$custom-light: #9260b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1996",
  "rgb": {
    "r": 94,
    "g": 25,
    "b": 150
  },
  "hsl": {
    "h": 273.12,
    "s": 71.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39903,
    "c": 0.18531,
    "h": 303.5
  },
  "luminance": 0.05277
}

Semantic roles & 50–950 ramp

primary
#5E1996
secondary
#7FC249
accent
#EE3A8B
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0511
muted
#7E7980

Preview Lab

Preview with #5E1996

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

Preview Lab → · Contrast checker → · Palette generator →

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