#5E1981#5E1981

#5E1981 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.165 H 310.9°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#5E1981
RGBrgb(94, 25, 129)
HSLhsl(280, 68%, 30%)
HSVhsv(280, 81%, 51%)
CMYKcmyk(27.1%, 80.6%, 0%, 49.4%)
CIE-LABlab(25.74, 47.34, -43.94)
CIE-LCHlch(25.74, 64.58, 317.13°)
OKLaboklab(38.12% 0.108 -0.1245)
OKLCHoklch(38.12% 0.165 310.9)
XYZxyz(8.9254, 4.6601, 21.1939)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1981 #3C8119
analogous
#2A1981 #5E1981 #811970
triadic
#5E1981 #815E19 #19815E
tetradic
#5E1981 #812A19 #3C8119 #197081
square
#5E1981 #812A19 #3C8119 #197081
split-complementary
#5E1981 #708119 #19812A
monochromatic
#13051A #390F4E #5E1981 #8323B4 #A43BD9

Accessibility & contrast

On white

10.87
#5E1981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5E1981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1981
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1981#FFFFFF#000000##FFFFFF
##5E19811.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A84
Deuteranopia (green-blind)
#003E7F
Tritanopia (blue-blind)
#59334D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5e1981;
/* rgb */ color: rgb(94, 25, 129);
/* oklch */ color: oklch(38.1% 0.165 310.9);
Tailwind
colors: {
  custom: {
    50: '#905fa6',
    500: '#5e1981',
    950: '#000000',
  },
}
SCSS
$custom: #5e1981;
$custom-light: #905fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1981",
  "rgb": {
    "r": 94,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 279.808,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.38122,
    "c": 0.16488,
    "h": 310.9
  },
  "luminance": 0.0466
}

Semantic roles & 50–950 ramp

primary
#5E1981
secondary
#68B541
accent
#EA3D78
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E1981

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

Preview Lab → · Contrast checker → · Palette generator →

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