#5D3EAB#5D3EAB

#5D3EAB is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.0% C 0.166 H 291.6°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#5D3EAB
RGBrgb(93, 62, 171)
HSLhsl(257, 47%, 46%)
HSVhsv(257, 64%, 67%)
CMYKcmyk(45.6%, 63.7%, 0%, 32.9%)
CIE-LABlab(35.42, 39.77, -53.96)
CIE-LCHlch(35.42, 67.03, 306.39°)
OKLaboklab(46.03% 0.0612 -0.1542)
OKLCHoklch(46.03% 0.166 291.6)
XYZxyz(13.5855, 8.7122, 39.4860)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3EAB #8CAB3E
analogous
#3E55AB #5D3EAB #933EAB
triadic
#5D3EAB #AB5D3E #3EAB5D
tetradic
#5D3EAB #AB3E55 #8CAB3E #3EAB93
square
#5D3EAB #AB3E55 #8CAB3E #3EAB93
split-complementary
#5D3EAB #AB933E #55AB3E
monochromatic
#2C1D51 #452E7E #5D3EAB #7D61C6 #A28ED6

Accessibility & contrast

On white

7.66
#5D3EAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5D3EAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3EAB
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3EAB#FFFFFF#000000##FFFFFF
##5D3EAB1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AE
Deuteranopia (green-blind)
#0051A9
Tritanopia (blue-blind)
#46576F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5d3eab;
/* rgb */ color: rgb(93, 62, 171);
/* oklch */ color: oklch(46.0% 0.166 291.6);
Tailwind
colors: {
  custom: {
    50: '#9175c5',
    500: '#5d3eab',
    950: '#000000',
  },
}
SCSS
$custom: #5d3eab;
$custom-light: #9175c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3eab",
  "rgb": {
    "r": 93,
    "g": 62,
    "b": 171
  },
  "hsl": {
    "h": 257.064,
    "s": 46.781,
    "l": 45.686
  },
  "oklch": {
    "l": 0.46034,
    "c": 0.16591,
    "h": 291.6
  },
  "luminance": 0.08713
}

Semantic roles & 50–950 ramp

primary
#5D3EAB
secondary
#AFC184
accent
#D651B1
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5D3EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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