#5E31D3#5E31D3

#5E31D3 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.9% C 0.228 H 286.9°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#5E31D3
RGBrgb(94, 49, 211)
HSLhsl(257, 65%, 51%)
HSVhsv(257, 77%, 83%)
CMYKcmyk(55.5%, 76.8%, 0%, 17.3%)
CIE-LABlab(36.52, 57.92, -75.66)
CIE-LCHlch(36.52, 95.28, 307.44°)
OKLaboklab(47.88% 0.0663 -0.2178)
OKLCHoklch(47.88% 0.228 286.9)
XYZxyz(17.4688, 9.2785, 62.4858)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E31D3 #A6D331
analogous
#3155D3 #5E31D3 #AF31D3
triadic
#5E31D3 #D35E31 #31D35E
tetradic
#5E31D3 #D33155 #A6D331 #31D3AF
square
#5E31D3 #D33155 #A6D331 #31D3AF
split-complementary
#5E31D3 #D3AF31 #55D331
monochromatic
#311871 #4723A4 #5E31D3 #8563DE #AD96E9

Accessibility & contrast

On white

7.35
#5E31D3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5E31D3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E31D3
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E31D3#FFFFFF#000000##FFFFFF
##5E31D31.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD8
Deuteranopia (green-blind)
#0051D0
Tritanopia (blue-blind)
#296081
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5e31d3;
/* rgb */ color: rgb(94, 49, 211);
/* oklch */ color: oklch(47.9% 0.228 286.9);
Tailwind
colors: {
  custom: {
    50: '#986fe2',
    500: '#5e31d3',
    950: '#000000',
  },
}
SCSS
$custom: #5e31d3;
$custom-light: #986fe2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e31d3",
  "rgb": {
    "r": 94,
    "g": 49,
    "b": 211
  },
  "hsl": {
    "h": 256.667,
    "s": 64.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.4788,
    "c": 0.22766,
    "h": 286.9
  },
  "luminance": 0.09279
}

Semantic roles & 50–950 ramp

primary
#5E31D3
secondary
#C0D48C
accent
#E840B9
background
#FAF6FE
surface
#F3ECFC
border
#CDC7D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5E31D3

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

Preview Lab → · Contrast checker → · Palette generator →

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