#5E1C81#5E1C81

#5E1C81 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.162 H 310.6°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#5E1C81
RGBrgb(94, 28, 129)
HSLhsl(279, 64%, 31%)
HSVhsv(279, 78%, 51%)
CMYKcmyk(27.1%, 78.3%, 0%, 49.4%)
CIE-LABlab(26.14, 46.18, -43.29)
CIE-LCHlch(26.14, 63.30, 316.85°)
OKLaboklab(38.4% 0.1053 -0.1227)
OKLCHoklch(38.4% 0.162 310.6)
XYZxyz(8.9930, 4.7954, 21.2165)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1C81 #3F811C
analogous
#2B1C81 #5E1C81 #811C71
triadic
#5E1C81 #815E1C #1C815E
tetradic
#5E1C81 #812B1C #3F811C #1C7181
square
#5E1C81 #812B1C #3F811C #1C7181
split-complementary
#5E1C81 #71811C #1C812B
monochromatic
#15061C #39114F #5E1C81 #8327B3 #A242D6

Accessibility & contrast

On white

10.72
#5E1C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5E1C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1C81
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1C81#FFFFFF#000000##FFFFFF
##5E1C811.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e1c81;
/* rgb */ color: rgb(94, 28, 129);
/* oklch */ color: oklch(38.4% 0.162 310.6);
Tailwind
colors: {
  custom: {
    50: '#9060a6',
    500: '#5e1c81',
    950: '#000000',
  },
}
SCSS
$custom: #5e1c81;
$custom-light: #9060a6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1c81",
  "rgb": {
    "r": 94,
    "g": 28,
    "b": 129
  },
  "hsl": {
    "h": 279.208,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38404,
    "c": 0.16166,
    "h": 310.6
  },
  "luminance": 0.04795
}

Semantic roles & 50–950 ramp

primary
#5E1C81
secondary
#6BB444
accent
#E7407A
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E1C81

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

Preview Lab → · Contrast checker → · Palette generator →

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