#5D3CA6#5D3CA6

#5D3CA6 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.3% C 0.162 H 293.2°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#5D3CA6
RGBrgb(93, 60, 166)
HSLhsl(259, 47%, 44%)
HSVhsv(259, 64%, 65%)
CMYKcmyk(44%, 63.9%, 0%, 34.9%)
CIE-LABlab(34.62, 39.48, -52.27)
CIE-LCHlch(34.62, 65.50, 307.07°)
OKLaboklab(45.34% 0.0638 -0.1492)
OKLCHoklch(45.34% 0.162 293.2)
XYZxyz(13.0111, 8.3117, 36.9878)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3CA6 #85A63C
analogous
#3C50A6 #5D3CA6 #923CA6
triadic
#5D3CA6 #A65D3C #3CA65D
tetradic
#5D3CA6 #A63C50 #85A63C #3CA692
square
#5D3CA6 #A63C50 #85A63C #3CA692
split-complementary
#5D3CA6 #A6923C #50A63C
monochromatic
#2B1C4C #442C79 #5D3CA6 #7C5BC4 #A088D4

Accessibility & contrast

On white

7.89
#5D3CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5D3CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3CA6
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3CA6#FFFFFF#000000##FFFFFF
##5D3CA61.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A9
Deuteranopia (green-blind)
#004FA4
Tritanopia (blue-blind)
#49556B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5d3ca6;
/* rgb */ color: rgb(93, 60, 166);
/* oklch */ color: oklch(45.3% 0.162 293.2);
Tailwind
colors: {
  custom: {
    50: '#9173c1',
    500: '#5d3ca6',
    950: '#000000',
  },
}
SCSS
$custom: #5d3ca6;
$custom-light: #9173c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3ca6",
  "rgb": {
    "r": 93,
    "g": 60,
    "b": 166
  },
  "hsl": {
    "h": 258.679,
    "s": 46.903,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45335,
    "c": 0.16232,
    "h": 293.2
  },
  "luminance": 0.08312
}

Semantic roles & 50–950 ramp

primary
#5D3CA6
secondary
#ABBE7F
accent
#D751AD
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5D3CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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