#5E31AE#5E31AE

#5E31AE is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.5% C 0.186 H 293.9°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#5E31AE
RGBrgb(94, 49, 174)
HSLhsl(262, 56%, 44%)
HSVhsv(262, 72%, 68%)
CMYKcmyk(46%, 71.8%, 0%, 31.8%)
CIE-LABlab(33.20, 47.83, -59.36)
CIE-LCHlch(33.20, 76.24, 308.86°)
OKLaboklab(44.54% 0.0755 -0.17)
OKLCHoklch(44.54% 0.186 293.9)
XYZxyz(13.3523, 7.6319, 40.8058)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E31AE #81AE31
analogous
#3142AE #5E31AE #9C31AE
triadic
#5E31AE #AE5E31 #31AE5E
tetradic
#5E31AE #AE3142 #81AE31 #31AE9C
square
#5E31AE #AE3142 #81AE31 #31AE9C
split-complementary
#5E31AE #AE9C31 #42AE31
monochromatic
#2A164E #44247E #5E31AE #7C4FCD #A07FDB

Accessibility & contrast

On white

8.31
#5E31AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#5E31AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E31AE
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E31AE#FFFFFF#000000##FFFFFF
##5E31AE1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB2
Deuteranopia (green-blind)
#004CAC
Tritanopia (blue-blind)
#47516C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5e31ae;
/* rgb */ color: rgb(94, 49, 174);
/* oklch */ color: oklch(44.5% 0.186 293.9);
Tailwind
colors: {
  custom: {
    50: '#936dc7',
    500: '#5e31ae',
    950: '#000000',
  },
}
SCSS
$custom: #5e31ae;
$custom-light: #936dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e31ae",
  "rgb": {
    "r": 94,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 261.6,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44539,
    "c": 0.18604,
    "h": 293.9
  },
  "luminance": 0.07632
}

Semantic roles & 50–950 ramp

primary
#5E31AE
secondary
#A8C477
accent
#DF48A9
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E31AE

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

Preview Lab → · Contrast checker → · Palette generator →

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