#5E1784#5E1784

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

Color values

HEX#5E1784
RGBrgb(94, 23, 132)
HSLhsl(279, 70%, 30%)
HSVhsv(279, 83%, 52%)
CMYKcmyk(28.8%, 82.6%, 0%, 48.2%)
CIE-LABlab(25.74, 48.71, -45.83)
CIE-LCHlch(25.74, 66.88, 316.75°)
OKLaboklab(38.2% 0.109 -0.1301)
OKLCHoklch(38.2% 0.17 310)
XYZxyz(9.0865, 4.6586, 22.2459)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1784 #3D8417
analogous
#281784 #5E1784 #841773
triadic
#5E1784 #845E17 #17845E
tetradic
#5E1784 #842817 #3D8417 #177384
square
#5E1784 #842817 #3D8417 #177384
split-complementary
#5E1784 #738417 #178428
monochromatic
#14051C #390E50 #5E1784 #8320B8 #A339DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5E1784#FFFFFF#000000##FFFFFF
##5E17841.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)
#003A87
Deuteranopia (green-blind)
#003E82
Tritanopia (blue-blind)
#58334E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5e1784;
/* rgb */ color: rgb(94, 23, 132);
/* oklch */ color: oklch(38.2% 0.170 310.0);
Tailwind
colors: {
  custom: {
    50: '#905ea9',
    500: '#5e1784',
    950: '#000000',
  },
}
SCSS
$custom: #5e1784;
$custom-light: #905ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1784",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 132
  },
  "hsl": {
    "h": 279.083,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.38195,
    "c": 0.16973,
    "h": 310
  },
  "luminance": 0.04658
}

Semantic roles & 50–950 ramp

primary
#5E1784
secondary
#69B83F
accent
#ED3B79
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1784

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

Preview Lab → · Contrast checker → · Palette generator →

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