#5E31AA#5E31AA

#5E31AA is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.2% C 0.181 H 294.9°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#5E31AA
RGBrgb(94, 49, 170)
HSLhsl(262, 55%, 43%)
HSVhsv(262, 71%, 67%)
CMYKcmyk(44.7%, 71.2%, 0%, 33.3%)
CIE-LABlab(32.87, 46.75, -57.51)
CIE-LCHlch(32.87, 74.11, 309.11°)
OKLaboklab(44.2% 0.0763 -0.1646)
OKLCHoklch(44.2% 0.181 294.9)
XYZxyz(12.9682, 7.4783, 38.7826)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E31AA #7DAA31
analogous
#3140AA #5E31AA #9A31AA
triadic
#5E31AA #AA5E31 #31AA5E
tetradic
#5E31AA #AA3140 #7DAA31 #31AA9A
square
#5E31AA #AA3140 #7DAA31 #31AA9A
split-complementary
#5E31AA #AA9A31 #40AA31
monochromatic
#29164B #44237A #5E31AA #7C4DCC #9F7CD9

Accessibility & contrast

On white

8.41
#5E31AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5E31AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E31AA
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E31AA#FFFFFF#000000##FFFFFF
##5E31AA1.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAE
Deuteranopia (green-blind)
#004BA8
Tritanopia (blue-blind)
#494F6A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5e31aa;
/* rgb */ color: rgb(94, 49, 170);
/* oklch */ color: oklch(44.2% 0.181 294.9);
Tailwind
colors: {
  custom: {
    50: '#926dc4',
    500: '#5e31aa',
    950: '#000000',
  },
}
SCSS
$custom: #5e31aa;
$custom-light: #926dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e31aa",
  "rgb": {
    "r": 94,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 262.314,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.442,
    "c": 0.18143,
    "h": 294.9
  },
  "luminance": 0.07479
}

Semantic roles & 50–950 ramp

primary
#5E31AA
secondary
#A5C275
accent
#DF49A7
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E31AA

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

Preview Lab → · Contrast checker → · Palette generator →

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