#5E31B0#5E31B0

#5E31B0 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.7% C 0.188 H 293.5°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#5E31B0
RGBrgb(94, 49, 176)
HSLhsl(261, 56%, 44%)
HSVhsv(261, 72%, 69%)
CMYKcmyk(46.6%, 72.2%, 0%, 31%)
CIE-LABlab(33.37, 48.38, -60.28)
CIE-LCHlch(33.37, 77.29, 308.75°)
OKLaboklab(44.71% 0.0751 -0.1727)
OKLCHoklch(44.71% 0.188 293.5)
XYZxyz(13.5487, 7.7105, 41.8403)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E31B0 #83B031
analogous
#3144B0 #5E31B0 #9E31B0
triadic
#5E31B0 #B05E31 #31B05E
tetradic
#5E31B0 #B03144 #83B031 #31B09E
square
#5E31B0 #B03144 #83B031 #31B09E
split-complementary
#5E31B0 #B09E31 #44B031
monochromatic
#2B1650 #442480 #5E31B0 #7D50CE #A080DC

Accessibility & contrast

On white

8.26
#5E31B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5E31B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E31B0
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E31B0#FFFFFF#000000##FFFFFF
##5E31B01.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B4
Deuteranopia (green-blind)
#004CAE
Tritanopia (blue-blind)
#46526D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5e31b0;
/* rgb */ color: rgb(94, 49, 176);
/* oklch */ color: oklch(44.7% 0.188 293.5);
Tailwind
colors: {
  custom: {
    50: '#936dc9',
    500: '#5e31b0',
    950: '#000000',
  },
}
SCSS
$custom: #5e31b0;
$custom-light: #936dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e31b0",
  "rgb": {
    "r": 94,
    "g": 49,
    "b": 176
  },
  "hsl": {
    "h": 261.26,
    "s": 56.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44711,
    "c": 0.18835,
    "h": 293.5
  },
  "luminance": 0.07711
}

Semantic roles & 50–950 ramp

primary
#5E31B0
secondary
#AAC578
accent
#E048AA
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E31B0

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

Preview Lab → · Contrast checker → · Palette generator →

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