#5D3AB9#5D3AB9

#5D3AB9 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.6% C 0.188 H 289.7°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#5D3AB9
RGBrgb(93, 58, 185)
HSLhsl(257, 52%, 48%)
HSVhsv(257, 69%, 73%)
CMYKcmyk(49.7%, 68.6%, 0%, 27.5%)
CIE-LABlab(35.70, 46.02, -61.81)
CIE-LCHlch(35.70, 77.06, 306.67°)
OKLaboklab(46.58% 0.0635 -0.1773)
OKLCHoklch(46.58% 0.188 289.7)
XYZxyz(14.7817, 8.8554, 46.8199)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3AB9 #96B93A
analogous
#3A57B9 #5D3AB9 #9C3AB9
triadic
#5D3AB9 #B95D3A #3AB95D
tetradic
#5D3AB9 #B93A57 #96B93A #3AB99C
square
#5D3AB9 #B93A57 #96B93A #3AB99C
split-complementary
#5D3AB9 #B99C3A #57B93A
monochromatic
#2E1D5C #462B8A #5D3AB9 #8062CE #A691DC

Accessibility & contrast

On white

7.58
#5D3AB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5D3AB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3AB9
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3AB9#FFFFFF#000000##FFFFFF
##5D3AB91.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BD
Deuteranopia (green-blind)
#0051B6
Tritanopia (blue-blind)
#3E5A75
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5d3ab9;
/* rgb */ color: rgb(93, 58, 185);
/* oklch */ color: oklch(46.6% 0.188 289.7);
Tailwind
colors: {
  custom: {
    50: '#9373cf',
    500: '#5d3ab9',
    950: '#000000',
  },
}
SCSS
$custom: #5d3ab9;
$custom-light: #9373cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3ab9",
  "rgb": {
    "r": 93,
    "g": 58,
    "b": 185
  },
  "hsl": {
    "h": 256.535,
    "s": 52.263,
    "l": 47.647
  },
  "oklch": {
    "l": 0.4658,
    "c": 0.18832,
    "h": 289.7
  },
  "luminance": 0.08856
}

Semantic roles & 50–950 ramp

primary
#5D3AB9
secondary
#B6C787
accent
#DC4CB4
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5D3AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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