#5E31C5#5E31C5

#5E31C5 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.6% C 0.212 H 289.3°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#5E31C5
RGBrgb(94, 49, 197)
HSLhsl(258, 60%, 48%)
HSVhsv(258, 75%, 77%)
CMYKcmyk(52.3%, 75.1%, 0%, 22.7%)
CIE-LABlab(35.22, 54.10, -69.66)
CIE-LCHlch(35.22, 88.20, 307.84°)
OKLaboklab(46.58% 0.0701 -0.2002)
OKLCHoklch(46.58% 0.212 289.3)
XYZxyz(15.7895, 8.6068, 53.6418)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E31C5 #98C531
analogous
#314EC5 #5E31C5 #A831C5
triadic
#5E31C5 #C55E31 #31C55E
tetradic
#5E31C5 #C5314E #98C531 #31C5A8
square
#5E31C5 #C5314E #98C531 #31C5A8
split-complementary
#5E31C5 #C5A831 #4EC531
monochromatic
#2F1963 #472594 #5E31C5 #825DD7 #A88EE3

Accessibility & contrast

On white

7.72
#5E31C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5E31C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E31C5
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E31C5#FFFFFF#000000##FFFFFF
##5E31C51.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C9
Deuteranopia (green-blind)
#004FC2
Tritanopia (blue-blind)
#375A79
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5e31c5;
/* rgb */ color: rgb(94, 49, 197);
/* oklch */ color: oklch(46.6% 0.212 289.3);
Tailwind
colors: {
  custom: {
    50: '#966ed8',
    500: '#5e31c5',
    950: '#000000',
  },
}
SCSS
$custom: #5e31c5;
$custom-light: #966ed8;
$custom-dark: #000000;
JSON
{
  "hex": "#5e31c5",
  "rgb": {
    "r": 94,
    "g": 49,
    "b": 197
  },
  "hsl": {
    "h": 258.243,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.46577,
    "c": 0.21215,
    "h": 289.3
  },
  "luminance": 0.08608
}

Semantic roles & 50–950 ramp

primary
#5E31C5
secondary
#B7CD85
accent
#E344B3
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0F0715
muted
#7E7A83

Preview Lab

Preview with #5E31C5

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

Preview Lab → · Contrast checker → · Palette generator →

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