#5E1984#5E1984

#5E1984 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.168 H 309.8°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#5E1984
RGBrgb(94, 25, 132)
HSLhsl(279, 68%, 31%)
HSVhsv(279, 81%, 52%)
CMYKcmyk(28.8%, 81.1%, 0%, 48.2%)
CIE-LABlab(25.98, 48.00, -45.43)
CIE-LCHlch(25.98, 66.09, 316.58°)
OKLaboklab(38.37% 0.1074 -0.1289)
OKLCHoklch(38.37% 0.168 309.8)
XYZxyz(9.1277, 4.7411, 22.2596)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1984 #3F8419
analogous
#291984 #5E1984 #841974
triadic
#5E1984 #845E19 #19845E
tetradic
#5E1984 #842919 #3F8419 #197484
square
#5E1984 #842919 #3F8419 #197484
split-complementary
#5E1984 #748419 #198429
monochromatic
#15061D #390F51 #5E1984 #8323B7 #A23DDA

Accessibility & contrast

On white

10.78
#5E1984 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5E1984 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1984
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1984#FFFFFF#000000##FFFFFF
##5E19841.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B87
Deuteranopia (green-blind)
#003E82
Tritanopia (blue-blind)
#58344F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5e1984;
/* rgb */ color: rgb(94, 25, 132);
/* oklch */ color: oklch(38.4% 0.168 309.8);
Tailwind
colors: {
  custom: {
    50: '#905fa9',
    500: '#5e1984',
    950: '#000000',
  },
}
SCSS
$custom: #5e1984;
$custom-light: #905fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1984",
  "rgb": {
    "r": 94,
    "g": 25,
    "b": 132
  },
  "hsl": {
    "h": 278.692,
    "s": 68.153,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38366,
    "c": 0.16779,
    "h": 309.8
  },
  "luminance": 0.04741
}

Semantic roles & 50–950 ramp

primary
#5E1984
secondary
#6BB841
accent
#EB3D7B
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1984

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

Preview Lab → · Contrast checker → · Palette generator →

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