#5D3ACD#5D3ACD

#5D3ACD is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.3% C 0.212 H 286.4°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#5D3ACD
RGBrgb(93, 58, 205)
HSLhsl(254, 60%, 52%)
HSVhsv(254, 72%, 80%)
CMYKcmyk(54.6%, 71.7%, 0%, 19.6%)
CIE-LABlab(37.41, 51.74, -70.72)
CIE-LCHlch(37.41, 87.63, 306.19°)
OKLaboklab(48.32% 0.0597 -0.2034)
OKLCHoklch(48.32% 0.212 286.4)
XYZxyz(17.0434, 9.7601, 58.7316)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3ACD #AACD3A
analogous
#3A61CD #5D3ACD #A73ACD
triadic
#5D3ACD #CD5D3A #3ACD5D
tetradic
#5D3ACD #CD3A61 #AACD3A #3ACDA7
square
#5D3ACD #CD3A61 #AACD3A #3ACDA7
split-complementary
#5D3ACD #CDA73A #61CD3A
monochromatic
#301C70 #4529A1 #5D3ACD #856BD9 #AD9CE6

Accessibility & contrast

On white

7.11
#5D3ACD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D3ACD
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3ACD#FFFFFF#000000##FFFFFF
##5D3ACD1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD1
Deuteranopia (green-blind)
#0054CA
Tritanopia (blue-blind)
#2C6280
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5d3acd;
/* rgb */ color: rgb(93, 58, 205);
/* oklch */ color: oklch(48.3% 0.212 286.4);
Tailwind
colors: {
  custom: {
    50: '#9673dd',
    500: '#5d3acd',
    950: '#000000',
  },
}
SCSS
$custom: #5d3acd;
$custom-light: #9673dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3acd",
  "rgb": {
    "r": 93,
    "g": 58,
    "b": 205
  },
  "hsl": {
    "h": 254.286,
    "s": 59.514,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48319,
    "c": 0.21202,
    "h": 286.4
  },
  "luminance": 0.09761
}

Semantic roles & 50–950 ramp

primary
#5D3ACD
secondary
#C2D291
accent
#E345BD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5D3ACD

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

Preview Lab → · Contrast checker → · Palette generator →

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