#5D3EAE#5D3EAE

#5D3EAE is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.3% C 0.170 H 291.0°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#5D3EAE
RGBrgb(93, 62, 174)
HSLhsl(257, 47%, 46%)
HSVhsv(257, 64%, 68%)
CMYKcmyk(46.6%, 64.4%, 0%, 31.8%)
CIE-LABlab(35.65, 40.64, -55.38)
CIE-LCHlch(35.65, 68.69, 306.27°)
OKLaboklab(46.27% 0.0609 -0.1584)
OKLCHoklch(46.27% 0.17 291)
XYZxyz(13.8747, 8.8279, 41.0091)
Luminance0.0883 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3EAE #8FAE3E
analogous
#3E57AE #5D3EAE #953EAE
triadic
#5D3EAE #AE5D3E #3EAE5D
tetradic
#5D3EAE #AE3E57 #8FAE3E #3EAE95
square
#5D3EAE #AE3E57 #8FAE3E #3EAE95
split-complementary
#5D3EAE #AE953E #57AE3E
monochromatic
#2D1E54 #452E81 #5D3EAE #7E62C7 #A38FD7

Accessibility & contrast

On white

7.59
#5D3EAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D3EAE
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3EAE#FFFFFF#000000##FFFFFF
##5D3EAE1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B2
Deuteranopia (green-blind)
#0051AC
Tritanopia (blue-blind)
#445870
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5d3eae;
/* rgb */ color: rgb(93, 62, 174);
/* oklch */ color: oklch(46.3% 0.170 291.0);
Tailwind
colors: {
  custom: {
    50: '#9175c7',
    500: '#5d3eae',
    950: '#000000',
  },
}
SCSS
$custom: #5d3eae;
$custom-light: #9175c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3eae",
  "rgb": {
    "r": 93,
    "g": 62,
    "b": 174
  },
  "hsl": {
    "h": 256.607,
    "s": 47.458,
    "l": 46.275
  },
  "oklch": {
    "l": 0.46269,
    "c": 0.1697,
    "h": 291
  },
  "luminance": 0.08828
}

Semantic roles & 50–950 ramp

primary
#5D3EAE
secondary
#B1C286
accent
#D751B2
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5D3EAE

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

Preview Lab → · Contrast checker → · Palette generator →

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