#5E1B93#5E1B93

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

Color values

HEX#5E1B93
RGBrgb(94, 27, 147)
HSLhsl(274, 69%, 34%)
HSVhsv(274, 82%, 58%)
CMYKcmyk(36.1%, 81.6%, 0%, 42.4%)
CIE-LABlab(27.49, 50.71, -52.31)
CIE-LCHlch(27.49, 72.86, 314.11°)
OKLaboklab(39.81% 0.1017 -0.1492)
OKLCHoklch(39.81% 0.181 304.3)
XYZxyz(10.2733, 5.2702, 28.0741)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1B93 #50931B
analogous
#221B93 #5E1B93 #931B8C
triadic
#5E1B93 #935E1B #1B935E
tetradic
#5E1B93 #93221B #50931B #1B8C93
square
#5E1B93 #93221B #50931B #1B8C93
split-complementary
#5E1B93 #8C931B #1B9322
monochromatic
#1C082C #3D125F #5E1B93 #7F24C7 #9D4BDE

Accessibility & contrast

On white

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

On black

2.05
#5E1B93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5E1B93#FFFFFF#000000##FFFFFF
##5E1B931.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F96
Deuteranopia (green-blind)
#004191
Tritanopia (blue-blind)
#533C58
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5e1b93;
/* rgb */ color: rgb(94, 27, 147);
/* oklch */ color: oklch(39.8% 0.181 304.3);
Tailwind
colors: {
  custom: {
    50: '#9161b4',
    500: '#5e1b93',
    950: '#000000',
  },
}
SCSS
$custom: #5e1b93;
$custom-light: #9161b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1b93",
  "rgb": {
    "r": 94,
    "g": 27,
    "b": 147
  },
  "hsl": {
    "h": 273.5,
    "s": 68.966,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39809,
    "c": 0.18056,
    "h": 304.3
  },
  "luminance": 0.0527
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5E1B93

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

Preview Lab → · Contrast checker → · Palette generator →

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