#5D3AAF#5D3AAF

#5D3AAF is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.8% C 0.176 H 291.6°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#5D3AAF
RGBrgb(93, 58, 175)
HSLhsl(258, 50%, 46%)
HSVhsv(258, 67%, 69%)
CMYKcmyk(46.9%, 66.9%, 0%, 31.4%)
CIE-LABlab(34.90, 43.17, -57.20)
CIE-LCHlch(34.90, 71.66, 307.04°)
OKLaboklab(45.75% 0.065 -0.1637)
OKLCHoklch(45.75% 0.176 291.6)
XYZxyz(13.7630, 8.4479, 41.4546)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3AAF #8CAF3A
analogous
#3A51AF #5D3AAF #973AAF
triadic
#5D3AAF #AF5D3A #3AAF5D
tetradic
#5D3AAF #AF3A51 #8CAF3A #3AAF97
square
#5D3AAF #AF3A51 #8CAF3A #3AAF97
split-complementary
#5D3AAF #AF973A #51AF3A
monochromatic
#2C1C53 #452B81 #5D3AAF #7D5DC9 #A28BD9

Accessibility & contrast

On white

7.81
#5D3AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5D3AAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3AAF
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3AAF#FFFFFF#000000##FFFFFF
##5D3AAF1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#0050AD
Tritanopia (blue-blind)
#44566F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5d3aaf;
/* rgb */ color: rgb(93, 58, 175);
/* oklch */ color: oklch(45.8% 0.176 291.6);
Tailwind
colors: {
  custom: {
    50: '#9272c8',
    500: '#5d3aaf',
    950: '#000000',
  },
}
SCSS
$custom: #5d3aaf;
$custom-light: #9272c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3aaf",
  "rgb": {
    "r": 93,
    "g": 58,
    "b": 175
  },
  "hsl": {
    "h": 257.949,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.45751,
    "c": 0.17617,
    "h": 291.6
  },
  "luminance": 0.08448
}

Semantic roles & 50–950 ramp

primary
#5D3AAF
secondary
#AFC382
accent
#DA4EB0
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5D3AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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