#5E1B9E#5E1B9E

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

Color values

HEX#5E1B9E
RGBrgb(94, 27, 158)
HSLhsl(271, 71%, 36%)
HSVhsv(271, 83%, 62%)
CMYKcmyk(40.5%, 82.9%, 0%, 38%)
CIE-LABlab(28.46, 53.31, -57.46)
CIE-LCHlch(28.46, 78.38, 312.85°)
OKLaboklab(40.78% 0.0983 -0.1643)
OKLCHoklch(40.78% 0.191 300.9)
XYZxyz(11.1780, 5.6321, 32.8393)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1B9E #5B9E1B
analogous
#1D1B9E #5E1B9E #9E1B9D
triadic
#5E1B9E #9E5E1B #1B9E5E
tetradic
#5E1B9E #9E1D1B #5B9E1B #1B9D9E
square
#5E1B9E #9E1D1B #5B9E1B #1B9D9E
split-complementary
#5E1B9E #9D9E1B #1B9E1D
monochromatic
#200935 #3F126A #5E1B9E #7D24D2 #9B52E1

Accessibility & contrast

On white

9.88
#5E1B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5E1B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1B9E
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1B9E#FFFFFF#000000##FFFFFF
##5E1B9E1.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e1b9e;
/* rgb */ color: rgb(94, 27, 158);
/* oklch */ color: oklch(40.8% 0.191 300.9);
Tailwind
colors: {
  custom: {
    50: '#9261bc',
    500: '#5e1b9e',
    950: '#000000',
  },
}
SCSS
$custom: #5e1b9e;
$custom-light: #9261bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1b9e",
  "rgb": {
    "r": 94,
    "g": 27,
    "b": 158
  },
  "hsl": {
    "h": 270.687,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40785,
    "c": 0.19147,
    "h": 300.9
  },
  "luminance": 0.05632
}

Semantic roles & 50–950 ramp

primary
#5E1B9E
secondary
#89C451
accent
#EE3A92
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5E1B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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