#5D31CA#5D31CA

#5D31CA is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.9% C 0.218 H 288.0°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#5D31CA
RGBrgb(93, 49, 202)
HSLhsl(257, 61%, 49%)
HSVhsv(257, 76%, 79%)
CMYKcmyk(54%, 75.7%, 0%, 20.8%)
CIE-LABlab(35.57, 55.33, -71.99)
CIE-LCHlch(35.57, 90.80, 307.54°)
OKLaboklab(46.94% 0.0673 -0.2071)
OKLCHoklch(46.94% 0.218 288)
XYZxyz(16.2700, 8.7872, 56.7045)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D31CA #9ECA31
analogous
#3152CA #5D31CA #AA31CA
triadic
#5D31CA #CA5D31 #31CA5D
tetradic
#5D31CA #CA3152 #9ECA31 #31CAAA
square
#5D31CA #CA3152 #9ECA31 #31CAAA
split-complementary
#5D31CA #CAAA31 #52CA31
monochromatic
#301967 #462599 #5D31CA #8260D8 #A991E4

Accessibility & contrast

On white

7.62
#5D31CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5D31CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D31CA
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D31CA#FFFFFF#000000##FFFFFF
##5D31CA1.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CE
Deuteranopia (green-blind)
#0050C7
Tritanopia (blue-blind)
#305C7C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5d31ca;
/* rgb */ color: rgb(93, 49, 202);
/* oklch */ color: oklch(46.9% 0.218 288.0);
Tailwind
colors: {
  custom: {
    50: '#966edb',
    500: '#5d31ca',
    950: '#000000',
  },
}
SCSS
$custom: #5d31ca;
$custom-light: #966edb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d31ca",
  "rgb": {
    "r": 93,
    "g": 49,
    "b": 202
  },
  "hsl": {
    "h": 257.255,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.46941,
    "c": 0.21777,
    "h": 288
  },
  "luminance": 0.08788
}

Semantic roles & 50–950 ramp

primary
#5D31CA
secondary
#BBCF88
accent
#E444B6
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0F0715
muted
#7E7A83

Preview Lab

Preview with #5D31CA

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

Preview Lab → · Contrast checker → · Palette generator →

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