#5D3DC4#5D3DC4

#5D3DC4 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.9% C 0.198 H 287.3°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#5D3DC4
RGBrgb(93, 61, 196)
HSLhsl(254, 53%, 50%)
HSVhsv(254, 69%, 77%)
CMYKcmyk(52.6%, 68.9%, 0%, 23.1%)
CIE-LABlab(37.21, 47.57, -65.82)
CIE-LCHlch(37.21, 81.21, 305.86°)
OKLaboklab(47.94% 0.0589 -0.1891)
OKLCHoklch(47.94% 0.198 287.3)
XYZxyz(16.1438, 9.6494, 53.2257)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3DC4 #A4C43D
analogous
#3D60C4 #5D3DC4 #A03DC4
triadic
#5D3DC4 #C45D3D #3DC45D
tetradic
#5D3DC4 #C43D60 #A4C43D #3DC4A0
square
#5D3DC4 #C43D60 #A4C43D #3DC4A0
split-complementary
#5D3DC4 #C4A03D #60C43D
monochromatic
#301F67 #462E96 #5D3DC4 #846CD2 #AB9BE1

Accessibility & contrast

On white

7.17
#5D3DC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5D3DC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3DC4
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3DC4#FFFFFF#000000##FFFFFF
##5D3DC41.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC8
Deuteranopia (green-blind)
#0054C1
Tritanopia (blue-blind)
#35607C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5d3dc4;
/* rgb */ color: rgb(93, 61, 196);
/* oklch */ color: oklch(47.9% 0.198 287.3);
Tailwind
colors: {
  custom: {
    50: '#9475d7',
    500: '#5d3dc4',
    950: '#000000',
  },
}
SCSS
$custom: #5d3dc4;
$custom-light: #9475d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3dc4",
  "rgb": {
    "r": 93,
    "g": 61,
    "b": 196
  },
  "hsl": {
    "h": 254.222,
    "s": 53.36,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47937,
    "c": 0.19801,
    "h": 287.3
  },
  "luminance": 0.0965
}

Semantic roles & 50–950 ramp

primary
#5D3DC4
secondary
#BECD90
accent
#DD4BBA
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5D3DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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