#5E1B94#5E1B94

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

Color values

HEX#5E1B94
RGBrgb(94, 27, 148)
HSLhsl(273, 69%, 34%)
HSVhsv(273, 82%, 58%)
CMYKcmyk(36.5%, 81.8%, 0%, 42%)
CIE-LABlab(27.58, 50.95, -52.79)
CIE-LCHlch(27.58, 73.36, 313.98°)
OKLaboklab(39.9% 0.1014 -0.1506)
OKLCHoklch(39.9% 0.182 304)
XYZxyz(10.3521, 5.3017, 28.4892)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1B94 #51941B
analogous
#211B94 #5E1B94 #941B8E
triadic
#5E1B94 #945E1B #1B945E
tetradic
#5E1B94 #94211B #51941B #1B8E94
square
#5E1B94 #94211B #51941B #1B8E94
split-complementary
#5E1B94 #8E941B #1B9421
monochromatic
#1C082C #3D1260 #5E1B94 #7F24C8 #9D4BDE

Accessibility & contrast

On white

10.19
#5E1B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1B94
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1B94#FFFFFF#000000##FFFFFF
##5E1B941.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004097
Deuteranopia (green-blind)
#004192
Tritanopia (blue-blind)
#533C58
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5e1b94;
/* rgb */ color: rgb(94, 27, 148);
/* oklch */ color: oklch(39.9% 0.182 304.0);
Tailwind
colors: {
  custom: {
    50: '#9161b4',
    500: '#5e1b94',
    950: '#000000',
  },
}
SCSS
$custom: #5e1b94;
$custom-light: #9161b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1b94",
  "rgb": {
    "r": 94,
    "g": 27,
    "b": 148
  },
  "hsl": {
    "h": 273.223,
    "s": 69.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39896,
    "c": 0.18154,
    "h": 304
  },
  "luminance": 0.05302
}

Semantic roles & 50–950 ramp

primary
#5E1B94
secondary
#7FC04B
accent
#EC3C8A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5E1B94

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

Preview Lab → · Contrast checker → · Palette generator →

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