#5D3CAE#5D3CAE

#5D3CAE is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.0% C 0.172 H 291.4°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#5D3CAE
RGBrgb(93, 60, 174)
HSLhsl(257, 49%, 46%)
HSVhsv(257, 66%, 68%)
CMYKcmyk(46.6%, 65.5%, 0%, 31.8%)
CIE-LABlab(35.23, 41.77, -56.06)
CIE-LCHlch(35.23, 69.91, 306.69°)
OKLaboklab(45.97% 0.063 -0.1604)
OKLCHoklch(45.97% 0.172 291.4)
XYZxyz(13.7679, 8.6144, 40.9735)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3CAE #8DAE3C
analogous
#3C54AE #5D3CAE #963CAE
triadic
#5D3CAE #AE5D3C #3CAE5D
tetradic
#5D3CAE #AE3C54 #8DAE3C #3CAE96
square
#5D3CAE #AE3C54 #8DAE3C #3CAE96
split-complementary
#5D3CAE #AE963C #54AE3C
monochromatic
#2C1D53 #452C80 #5D3CAE #7E5FC8 #A28DD8

Accessibility & contrast

On white

7.71
#5D3CAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5D3CAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3CAE
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3CAE#FFFFFF#000000##FFFFFF
##5D3CAE1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d3cae;
/* rgb */ color: rgb(93, 60, 174);
/* oklch */ color: oklch(46.0% 0.172 291.4);
Tailwind
colors: {
  custom: {
    50: '#9274c7',
    500: '#5d3cae',
    950: '#000000',
  },
}
SCSS
$custom: #5d3cae;
$custom-light: #9274c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3cae",
  "rgb": {
    "r": 93,
    "g": 60,
    "b": 174
  },
  "hsl": {
    "h": 257.368,
    "s": 48.718,
    "l": 45.882
  },
  "oklch": {
    "l": 0.45966,
    "c": 0.17234,
    "h": 291.4
  },
  "luminance": 0.08615
}

Semantic roles & 50–950 ramp

primary
#5D3CAE
secondary
#B0C283
accent
#D850B1
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5D3CAE

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

Preview Lab → · Contrast checker → · Palette generator →

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