#5E1E81#5E1E81

#5E1E81 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.159 H 310.4°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#5E1E81
RGBrgb(94, 30, 129)
HSLhsl(279, 62%, 31%)
HSVhsv(279, 77%, 51%)
CMYKcmyk(27.1%, 76.7%, 0%, 49.4%)
CIE-LABlab(26.43, 45.37, -42.83)
CIE-LCHlch(26.43, 62.39, 316.65°)
OKLaboklab(38.61% 0.1033 -0.1213)
OKLCHoklch(38.61% 0.159 310.4)
XYZxyz(9.0420, 4.8934, 21.2328)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1E81 #41811E
analogous
#2C1E81 #5E1E81 #811E72
triadic
#5E1E81 #815E1E #1E815E
tetradic
#5E1E81 #812C1E #41811E #1E7281
square
#5E1E81 #812C1E #41811E #1E7281
split-complementary
#5E1E81 #72811E #1E812C
monochromatic
#16071E #3A124F #5E1E81 #822AB3 #A246D4

Accessibility & contrast

On white

10.61
#5E1E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5E1E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1E81
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1E81#FFFFFF#000000##FFFFFF
##5E1E811.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#07407F
Tritanopia (blue-blind)
#59354E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e1e81;
/* rgb */ color: rgb(94, 30, 129);
/* oklch */ color: oklch(38.6% 0.159 310.4);
Tailwind
colors: {
  custom: {
    50: '#9061a6',
    500: '#5e1e81',
    950: '#000000',
  },
}
SCSS
$custom: #5e1e81;
$custom-light: #9061a6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1e81",
  "rgb": {
    "r": 94,
    "g": 30,
    "b": 129
  },
  "hsl": {
    "h": 278.788,
    "s": 62.264,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38605,
    "c": 0.15937,
    "h": 310.4
  },
  "luminance": 0.04893
}

Semantic roles & 50–950 ramp

primary
#5E1E81
secondary
#6DB447
accent
#E5427C
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5E1E81

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

Preview Lab → · Contrast checker → · Palette generator →

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