#5E31BE#5E31BE

#5E31BE is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 45.9% C 0.204 H 290.6°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#5E31BE
RGBrgb(94, 49, 190)
HSLhsl(259, 59%, 47%)
HSVhsv(259, 74%, 75%)
CMYKcmyk(50.5%, 74.2%, 0%, 25.5%)
CIE-LABlab(34.59, 52.19, -66.58)
CIE-LCHlch(34.59, 84.60, 308.09°)
OKLaboklab(45.94% 0.0719 -0.1912)
OKLCHoklch(45.94% 0.204 290.6)
XYZxyz(15.0060, 8.2934, 49.5153)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E31BE #91BE31
analogous
#314BBE #5E31BE #A531BE
triadic
#5E31BE #BE5E31 #31BE5E
tetradic
#5E31BE #BE314B #91BE31 #31BEA5
square
#5E31BE #BE314B #91BE31 #31BEA5
split-complementary
#5E31BE #BEA531 #4BBE31
monochromatic
#2E185D #46248D #5E31BE #8058D4 #A589E1

Accessibility & contrast

On white

7.90
#5E31BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5E31BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E31BE
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E31BE#FFFFFF#000000##FFFFFF
##5E31BE1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C2
Deuteranopia (green-blind)
#004EBB
Tritanopia (blue-blind)
#3D5775
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5e31be;
/* rgb */ color: rgb(94, 49, 190);
/* oklch */ color: oklch(45.9% 0.204 290.6);
Tailwind
colors: {
  custom: {
    50: '#956ed3',
    500: '#5e31be',
    950: '#000000',
  },
}
SCSS
$custom: #5e31be;
$custom-light: #956ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e31be",
  "rgb": {
    "r": 94,
    "g": 49,
    "b": 190
  },
  "hsl": {
    "h": 259.149,
    "s": 58.996,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45942,
    "c": 0.20429,
    "h": 290.6
  },
  "luminance": 0.08294
}

Semantic roles & 50–950 ramp

primary
#5E31BE
secondary
#B3CA80
accent
#E246B0
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5E31BE

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

Preview Lab → · Contrast checker → · Palette generator →

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