#5D31C5#5D31C5

#5D31C5 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.5% C 0.212 H 288.9°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#5D31C5
RGBrgb(93, 49, 197)
HSLhsl(258, 60%, 48%)
HSVhsv(258, 75%, 77%)
CMYKcmyk(52.8%, 75.1%, 0%, 22.7%)
CIE-LABlab(35.11, 53.96, -69.83)
CIE-LCHlch(35.11, 88.25, 307.69°)
OKLaboklab(46.48% 0.0686 -0.2008)
OKLCHoklch(46.48% 0.212 288.9)
XYZxyz(15.6876, 8.5543, 53.6370)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D31C5 #99C531
analogous
#314FC5 #5D31C5 #A731C5
triadic
#5D31C5 #C55D31 #31C55D
tetradic
#5D31C5 #C5314F #99C531 #31C5A7
square
#5D31C5 #C5314F #99C531 #31C5A7
split-complementary
#5D31C5 #C5A731 #4FC531
monochromatic
#2F1963 #462594 #5D31C5 #815DD7 #A78EE3

Accessibility & contrast

On white

7.75
#5D31C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5D31C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D31C5
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D31C5#FFFFFF#000000##FFFFFF
##5D31C51.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C9
Deuteranopia (green-blind)
#004FC2
Tritanopia (blue-blind)
#355A79
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5d31c5;
/* rgb */ color: rgb(93, 49, 197);
/* oklch */ color: oklch(46.5% 0.212 288.9);
Tailwind
colors: {
  custom: {
    50: '#956ed8',
    500: '#5d31c5',
    950: '#000000',
  },
}
SCSS
$custom: #5d31c5;
$custom-light: #956ed8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d31c5",
  "rgb": {
    "r": 93,
    "g": 49,
    "b": 197
  },
  "hsl": {
    "h": 257.838,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.46479,
    "c": 0.21218,
    "h": 288.9
  },
  "luminance": 0.08555
}

Semantic roles & 50–950 ramp

primary
#5D31C5
secondary
#B8CD85
accent
#E344B4
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5D31C5

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

Preview Lab → · Contrast checker → · Palette generator →

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