#5E1684#5E1684

#5E1684 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.171 H 310.0°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#5E1684
RGBrgb(94, 22, 132)
HSLhsl(279, 71%, 30%)
HSVhsv(279, 83%, 52%)
CMYKcmyk(28.8%, 83.3%, 0%, 48.2%)
CIE-LABlab(25.62, 49.05, -46.02)
CIE-LCHlch(25.62, 67.26, 316.83°)
OKLaboklab(38.11% 0.1098 -0.1307)
OKLCHoklch(38.11% 0.171 310)
XYZxyz(9.0670, 4.6196, 22.2394)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1684 #3C8416
analogous
#271684 #5E1684 #841673
triadic
#5E1684 #845E16 #16845E
tetradic
#5E1684 #842716 #3C8416 #167384
square
#5E1684 #842716 #3C8416 #167384
split-complementary
#5E1684 #738416 #168427
monochromatic
#13051B #390D50 #5E1684 #831FB8 #A437DE

Accessibility & contrast

On white

10.92
#5E1684 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5E1684 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1684
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1684#FFFFFF#000000##FFFFFF
##5E16841.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.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: #5e1684;
/* rgb */ color: rgb(94, 22, 132);
/* oklch */ color: oklch(38.1% 0.171 310.0);
Tailwind
colors: {
  custom: {
    50: '#905ea9',
    500: '#5e1684',
    950: '#000000',
  },
}
SCSS
$custom: #5e1684;
$custom-light: #905ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1684",
  "rgb": {
    "r": 94,
    "g": 22,
    "b": 132
  },
  "hsl": {
    "h": 279.273,
    "s": 71.429,
    "l": 30.196
  },
  "oklch": {
    "l": 0.38113,
    "c": 0.17068,
    "h": 310
  },
  "luminance": 0.04619
}

Semantic roles & 50–950 ramp

primary
#5E1684
secondary
#68B83D
accent
#EE3A78
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1684

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

Preview Lab → · Contrast checker → · Palette generator →

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