#5E1B81#5E1B81

#5E1B81 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.163 H 310.7°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#5E1B81
RGBrgb(94, 27, 129)
HSLhsl(279, 65%, 31%)
HSVhsv(279, 79%, 51%)
CMYKcmyk(27.1%, 79.1%, 0%, 49.4%)
CIE-LABlab(26.01, 46.58, -43.51)
CIE-LCHlch(26.01, 63.74, 316.95°)
OKLaboklab(38.31% 0.1062 -0.1233)
OKLCHoklch(38.31% 0.163 310.7)
XYZxyz(8.9697, 4.7487, 21.2087)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1B81 #3E811B
analogous
#2B1B81 #5E1B81 #811B71
triadic
#5E1B81 #815E1B #1B815E
tetradic
#5E1B81 #812B1B #3E811B #1B7181
square
#5E1B81 #812B1B #3E811B #1B7181
split-complementary
#5E1B81 #71811B #1B812B
monochromatic
#14061C #39104E #5E1B81 #8326B4 #A33FD7

Accessibility & contrast

On white

10.77
#5E1B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5E1B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1B81
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1B81#FFFFFF#000000##FFFFFF
##5E1B811.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B84
Deuteranopia (green-blind)
#023F7F
Tritanopia (blue-blind)
#59344D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e1b81;
/* rgb */ color: rgb(94, 27, 129);
/* oklch */ color: oklch(38.3% 0.163 310.7);
Tailwind
colors: {
  custom: {
    50: '#9060a6',
    500: '#5e1b81',
    950: '#000000',
  },
}
SCSS
$custom: #5e1b81;
$custom-light: #9060a6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1b81",
  "rgb": {
    "r": 94,
    "g": 27,
    "b": 129
  },
  "hsl": {
    "h": 279.412,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38307,
    "c": 0.16276,
    "h": 310.7
  },
  "luminance": 0.04749
}

Semantic roles & 50–950 ramp

primary
#5E1B81
secondary
#6AB543
accent
#E83F79
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E1B81

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

Preview Lab → · Contrast checker → · Palette generator →

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