#5E31AB#5E31AB

#5E31AB is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.3% C 0.183 H 294.6°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#5E31AB
RGBrgb(94, 49, 171)
HSLhsl(262, 55%, 43%)
HSVhsv(262, 71%, 67%)
CMYKcmyk(45%, 71.3%, 0%, 32.9%)
CIE-LABlab(32.95, 47.02, -57.97)
CIE-LCHlch(32.95, 74.65, 309.04°)
OKLaboklab(44.28% 0.0761 -0.166)
OKLCHoklch(44.28% 0.183 294.6)
XYZxyz(13.0631, 7.5162, 39.2827)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E31AB #7EAB31
analogous
#3141AB #5E31AB #9B31AB
triadic
#5E31AB #AB5E31 #31AB5E
tetradic
#5E31AB #AB3141 #7EAB31 #31AB9B
square
#5E31AB #AB3141 #7EAB31 #31AB9B
split-complementary
#5E31AB #AB9B31 #41AB31
monochromatic
#2A164C #44237B #5E31AB #7C4DCC #9F7DDA

Accessibility & contrast

On white

8.39
#5E31AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E31AB
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E31AB#FFFFFF#000000##FFFFFF
##5E31AB1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAF
Deuteranopia (green-blind)
#004CA9
Tritanopia (blue-blind)
#48506A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5e31ab;
/* rgb */ color: rgb(94, 49, 171);
/* oklch */ color: oklch(44.3% 0.183 294.6);
Tailwind
colors: {
  custom: {
    50: '#936dc5',
    500: '#5e31ab',
    950: '#000000',
  },
}
SCSS
$custom: #5e31ab;
$custom-light: #936dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e31ab",
  "rgb": {
    "r": 94,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 262.131,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.44284,
    "c": 0.18258,
    "h": 294.6
  },
  "luminance": 0.07517
}

Semantic roles & 50–950 ramp

primary
#5E31AB
secondary
#A6C275
accent
#DF49A8
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E31AB

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

Preview Lab → · Contrast checker → · Palette generator →

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