#5D3BAE#5D3BAE

#5D3BAE is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.8% C 0.174 H 291.7°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#5D3BAE
RGBrgb(93, 59, 174)
HSLhsl(258, 49%, 46%)
HSVhsv(258, 66%, 68%)
CMYKcmyk(46.6%, 66.1%, 0%, 31.8%)
CIE-LABlab(35.02, 42.33, -56.40)
CIE-LCHlch(35.02, 70.52, 306.89°)
OKLaboklab(45.82% 0.0641 -0.1614)
OKLCHoklch(45.82% 0.174 291.7)
XYZxyz(13.7160, 8.5106, 40.9562)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3BAE #8CAE3B
analogous
#3B52AE #5D3BAE #963BAE
triadic
#5D3BAE #AE5D3B #3BAE5D
tetradic
#5D3BAE #AE3B52 #8CAE3B #3BAE96
square
#5D3BAE #AE3B52 #8CAE3B #3BAE96
split-complementary
#5D3BAE #AE963B #52AE3B
monochromatic
#2C1C53 #452C80 #5D3BAE #7D5EC8 #A28CD8

Accessibility & contrast

On white

7.77
#5D3BAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5D3BAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3BAE
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3BAE#FFFFFF#000000##FFFFFF
##5D3BAE1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B2
Deuteranopia (green-blind)
#0050AC
Tritanopia (blue-blind)
#44576F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5d3bae;
/* rgb */ color: rgb(93, 59, 174);
/* oklch */ color: oklch(45.8% 0.174 291.7);
Tailwind
colors: {
  custom: {
    50: '#9273c7',
    500: '#5d3bae',
    950: '#000000',
  },
}
SCSS
$custom: #5d3bae;
$custom-light: #9273c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3bae",
  "rgb": {
    "r": 93,
    "g": 59,
    "b": 174
  },
  "hsl": {
    "h": 257.739,
    "s": 49.356,
    "l": 45.686
  },
  "oklch": {
    "l": 0.45816,
    "c": 0.17365,
    "h": 291.7
  },
  "luminance": 0.08511
}

Semantic roles & 50–950 ramp

primary
#5D3BAE
secondary
#AFC282
accent
#D94FB0
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5D3BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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