#5E31D0#5E31D0

#5E31D0 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.6% C 0.224 H 287.4°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#5E31D0
RGBrgb(94, 49, 208)
HSLhsl(257, 63%, 50%)
HSVhsv(257, 76%, 82%)
CMYKcmyk(54.8%, 76.4%, 0%, 18.4%)
CIE-LABlab(36.23, 57.10, -74.39)
CIE-LCHlch(36.23, 93.78, 307.51°)
OKLaboklab(47.6% 0.0672 -0.2141)
OKLCHoklch(47.6% 0.224 287.4)
XYZxyz(17.0962, 9.1295, 60.5236)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E31D0 #A3D031
analogous
#3153D0 #5E31D0 #AD31D0
triadic
#5E31D0 #D05E31 #31D05E
tetradic
#5E31D0 #D03153 #A3D031 #31D0AD
square
#5E31D0 #D03153 #A3D031 #31D0AD
split-complementary
#5E31D0 #D0AD31 #53D031
monochromatic
#31196E #47249F #5E31D0 #8563DB #AC95E7

Accessibility & contrast

On white

7.43
#5E31D0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5E31D0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E31D0
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E31D0#FFFFFF#000000##FFFFFF
##5E31D01.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D4
Deuteranopia (green-blind)
#0051CD
Tritanopia (blue-blind)
#2C5E7F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5e31d0;
/* rgb */ color: rgb(94, 49, 208);
/* oklch */ color: oklch(47.6% 0.224 287.4);
Tailwind
colors: {
  custom: {
    50: '#986fe0',
    500: '#5e31d0',
    950: '#000000',
  },
}
SCSS
$custom: #5e31d0;
$custom-light: #986fe0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e31d0",
  "rgb": {
    "r": 94,
    "g": 49,
    "b": 208
  },
  "hsl": {
    "h": 256.981,
    "s": 62.846,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47597,
    "c": 0.22437,
    "h": 287.4
  },
  "luminance": 0.0913
}

Semantic roles & 50–950 ramp

primary
#5E31D0
secondary
#BED28B
accent
#E642B7
background
#FAF6FD
surface
#F3ECFB
border
#CDC7D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5E31D0

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

Preview Lab → · Contrast checker → · Palette generator →

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