#5D3CA2#5D3CA2

#5D3CA2 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.0% C 0.157 H 294.1°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#5D3CA2
RGBrgb(93, 60, 162)
HSLhsl(259, 46%, 44%)
HSVhsv(259, 63%, 64%)
CMYKcmyk(42.6%, 63%, 0%, 36.5%)
CIE-LABlab(34.33, 38.35, -50.34)
CIE-LCHlch(34.33, 63.28, 307.30°)
OKLaboklab(45.03% 0.0641 -0.1436)
OKLCHoklch(45.03% 0.157 294.1)
XYZxyz(12.6499, 8.1672, 35.0853)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3CA2 #81A23C
analogous
#3C4EA2 #5D3CA2 #903CA2
triadic
#5D3CA2 #A25D3C #3CA25D
tetradic
#5D3CA2 #A23C4E #81A23C #3CA290
square
#5D3CA2 #A23C4E #81A23C #3CA290
split-complementary
#5D3CA2 #A2903C #4EA23C
monochromatic
#2A1B49 #432B75 #5D3CA2 #7B59C2 #9F86D2

Accessibility & contrast

On white

7.97
#5D3CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5D3CA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3CA2
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3CA2#FFFFFF#000000##FFFFFF
##5D3CA21.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A5
Deuteranopia (green-blind)
#004FA0
Tritanopia (blue-blind)
#4A5369
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5d3ca2;
/* rgb */ color: rgb(93, 60, 162);
/* oklch */ color: oklch(45.0% 0.157 294.1);
Tailwind
colors: {
  custom: {
    50: '#9073be',
    500: '#5d3ca2',
    950: '#000000',
  },
}
SCSS
$custom: #5d3ca2;
$custom-light: #9073be;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3ca2",
  "rgb": {
    "r": 93,
    "g": 60,
    "b": 162
  },
  "hsl": {
    "h": 259.412,
    "s": 45.946,
    "l": 43.529
  },
  "oklch": {
    "l": 0.45027,
    "c": 0.15725,
    "h": 294.1
  },
  "luminance": 0.08168
}

Semantic roles & 50–950 ramp

primary
#5D3CA2
secondary
#A8BC7D
accent
#D652AB
background
#F9F7FB
surface
#F1EDF7
border
#CBC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5D3CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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