#5D31C0#5D31C0

#5D31C0 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.0% C 0.207 H 289.8°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#5D31C0
RGBrgb(93, 49, 192)
HSLhsl(258, 59%, 47%)
HSVhsv(258, 74%, 75%)
CMYKcmyk(51.6%, 74.5%, 0%, 24.7%)
CIE-LABlab(34.66, 52.59, -67.64)
CIE-LCHlch(34.66, 85.68, 307.86°)
OKLaboklab(46.02% 0.0699 -0.1944)
OKLCHoklch(46.02% 0.207 289.8)
XYZxyz(15.1242, 8.3289, 50.6697)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D31C0 #94C031
analogous
#314CC0 #5D31C0 #A531C0
triadic
#5D31C0 #C05D31 #31C05D
tetradic
#5D31C0 #C0314C #94C031 #31C0A5
square
#5D31C0 #C0314C #94C031 #31C0A5
split-complementary
#5D31C0 #C0A531 #4CC031
monochromatic
#2E185E #45258F #5D31C0 #7F59D5 #A58AE1

Accessibility & contrast

On white

7.88
#5D31C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5D31C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D31C0
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D31C0#FFFFFF#000000##FFFFFF
##5D31C01.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C4
Deuteranopia (green-blind)
#004EBD
Tritanopia (blue-blind)
#395876
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5d31c0;
/* rgb */ color: rgb(93, 49, 192);
/* oklch */ color: oklch(46.0% 0.207 289.8);
Tailwind
colors: {
  custom: {
    50: '#956ed4',
    500: '#5d31c0',
    950: '#000000',
  },
}
SCSS
$custom: #5d31c0;
$custom-light: #956ed4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d31c0",
  "rgb": {
    "r": 93,
    "g": 49,
    "b": 192
  },
  "hsl": {
    "h": 258.462,
    "s": 59.336,
    "l": 47.255
  },
  "oklch": {
    "l": 0.46023,
    "c": 0.20655,
    "h": 289.8
  },
  "luminance": 0.0833
}

Semantic roles & 50–950 ramp

primary
#5D31C0
secondary
#B5CB82
accent
#E345B2
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5D31C0

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

Preview Lab → · Contrast checker → · Palette generator →

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