#5E31DC#5E31DC

#5E31DC is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.7% C 0.237 H 285.6°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#5E31DC
RGBrgb(94, 49, 220)
HSLhsl(256, 71%, 53%)
HSVhsv(256, 78%, 86%)
CMYKcmyk(57.3%, 77.7%, 0%, 13.7%)
CIE-LABlab(37.38, 60.37, -79.42)
CIE-LCHlch(37.38, 99.76, 307.24°)
OKLaboklab(48.74% 0.0637 -0.2288)
OKLCHoklch(48.74% 0.238 285.6)
XYZxyz(18.6288, 9.7425, 68.5951)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E31DC #AFDC31
analogous
#315ADC #5E31DC #B331DC
triadic
#5E31DC #DC5E31 #31DC5E
tetradic
#5E31DC #DC315A #AFDC31 #31DCB3
square
#5E31DC #DC315A #AFDC31 #31DCB3
split-complementary
#5E31DC #DCB331 #5ADC31
monochromatic
#31157D #451EB2 #5E31DC #8765E5 #B09AEE

Accessibility & contrast

On white

7.12
#5E31DC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5E31DC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E31DC
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E31DC#FFFFFF#000000##FFFFFF
##5E31DC1.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CE1
Deuteranopia (green-blind)
#0053D9
Tritanopia (blue-blind)
#1A6386
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5e31dc;
/* rgb */ color: rgb(94, 49, 220);
/* oklch */ color: oklch(48.7% 0.237 285.6);
Tailwind
colors: {
  custom: {
    50: '#996fe8',
    500: '#5e31dc',
    950: '#000000',
  },
}
SCSS
$custom: #5e31dc;
$custom-light: #996fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#5e31dc",
  "rgb": {
    "r": 94,
    "g": 49,
    "b": 220
  },
  "hsl": {
    "h": 255.789,
    "s": 70.954,
    "l": 52.745
  },
  "oklch": {
    "l": 0.48739,
    "c": 0.2375,
    "h": 285.6
  },
  "luminance": 0.09744
}

Semantic roles & 50–950 ramp

primary
#5E31DC
secondary
#C6D98F
accent
#EE3ABE
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5E31DC

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

Preview Lab → · Contrast checker → · Palette generator →

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