#5D3AC5#5D3AC5

#5D3AC5 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.6% C 0.203 H 287.6°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#5D3AC5
RGBrgb(93, 58, 197)
HSLhsl(255, 55%, 50%)
HSVhsv(255, 71%, 77%)
CMYKcmyk(52.8%, 70.6%, 0%, 22.7%)
CIE-LABlab(36.71, 49.45, -67.21)
CIE-LCHlch(36.71, 83.44, 306.35°)
OKLaboklab(47.61% 0.0613 -0.1931)
OKLCHoklch(47.61% 0.203 287.6)
XYZxyz(16.1023, 9.3837, 53.7753)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3AC5 #A2C53A
analogous
#3A5CC5 #5D3AC5 #A33AC5
triadic
#5D3AC5 #C55D3A #3AC55D
tetradic
#5D3AC5 #C53A5C #A2C53A #3AC5A3
square
#5D3AC5 #C53A5C #A2C53A #3AC5A3
split-complementary
#5D3AC5 #C5A33A #5CC53A
monochromatic
#301E66 #472C96 #5D3AC5 #8469D3 #AB99E1

Accessibility & contrast

On white

7.30
#5D3AC5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5D3AC5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3AC5
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3AC5#FFFFFF#000000##FFFFFF
##5D3AC51.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC9
Deuteranopia (green-blind)
#0053C2
Tritanopia (blue-blind)
#345F7B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5d3ac5;
/* rgb */ color: rgb(93, 58, 197);
/* oklch */ color: oklch(47.6% 0.203 287.6);
Tailwind
colors: {
  custom: {
    50: '#9573d8',
    500: '#5d3ac5',
    950: '#000000',
  },
}
SCSS
$custom: #5d3ac5;
$custom-light: #9573d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3ac5",
  "rgb": {
    "r": 93,
    "g": 58,
    "b": 197
  },
  "hsl": {
    "h": 255.108,
    "s": 54.51,
    "l": 50
  },
  "oklch": {
    "l": 0.47611,
    "c": 0.20263,
    "h": 287.6
  },
  "luminance": 0.09384
}

Semantic roles & 50–950 ramp

primary
#5D3AC5
secondary
#BDCD8E
accent
#DE4AB9
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5D3AC5

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

Preview Lab → · Contrast checker → · Palette generator →

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