#5E1B96#5E1B96

#5E1B96 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.1% C 0.184 H 303.3°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#5E1B96
RGBrgb(94, 27, 150)
HSLhsl(273, 69%, 35%)
HSVhsv(273, 82%, 59%)
CMYKcmyk(37.3%, 82%, 0%, 41.2%)
CIE-LABlab(27.75, 51.42, -53.73)
CIE-LCHlch(27.75, 74.37, 313.74°)
OKLaboklab(40.07% 0.1008 -0.1533)
OKLCHoklch(40.07% 0.184 303.3)
XYZxyz(10.5117, 5.3656, 29.3301)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1B96 #53961B
analogous
#201B96 #5E1B96 #961B91
triadic
#5E1B96 #965E1B #1B965E
tetradic
#5E1B96 #96201B #53961B #1B9196
square
#5E1B96 #96201B #53961B #1B9196
split-complementary
#5E1B96 #91961B #1B9620
monochromatic
#1D082E #3D1262 #5E1B96 #7F24CA #9C4DDF

Accessibility & contrast

On white

10.13
#5E1B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5E1B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1B96
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1B96#FFFFFF#000000##FFFFFF
##5E1B961.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e1b96;
/* rgb */ color: rgb(94, 27, 150);
/* oklch */ color: oklch(40.1% 0.184 303.3);
Tailwind
colors: {
  custom: {
    50: '#9261b6',
    500: '#5e1b96',
    950: '#000000',
  },
}
SCSS
$custom: #5e1b96;
$custom-light: #9261b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1b96",
  "rgb": {
    "r": 94,
    "g": 27,
    "b": 150
  },
  "hsl": {
    "h": 272.683,
    "s": 69.492,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40071,
    "c": 0.18353,
    "h": 303.3
  },
  "luminance": 0.05366
}

Semantic roles & 50–950 ramp

primary
#5E1B96
secondary
#81C14C
accent
#EC3B8C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #5E1B96

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

Preview Lab → · Contrast checker → · Palette generator →

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