#5D3BAD#5D3BAD

#5D3BAD is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.7% C 0.172 H 291.9°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#5D3BAD
RGBrgb(93, 59, 173)
HSLhsl(258, 49%, 45%)
HSVhsv(258, 66%, 68%)
CMYKcmyk(46.2%, 65.9%, 0%, 32.2%)
CIE-LABlab(34.95, 42.04, -55.93)
CIE-LCHlch(34.95, 69.97, 306.93°)
OKLaboklab(45.74% 0.0642 -0.16)
OKLCHoklch(45.74% 0.172 291.9)
XYZxyz(13.6189, 8.4718, 40.4447)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3BAD #8BAD3B
analogous
#3B52AD #5D3BAD #963BAD
triadic
#5D3BAD #AD5D3B #3BAD5D
tetradic
#5D3BAD #AD3B52 #8BAD3B #3BAD96
square
#5D3BAD #AD3B52 #8BAD3B #3BAD96
split-complementary
#5D3BAD #AD963B #52AD3B
monochromatic
#2C1C52 #442B7F #5D3BAD #7D5DC8 #A28BD7

Accessibility & contrast

On white

7.79
#5D3BAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D3BAD
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3BAD#FFFFFF#000000##FFFFFF
##5D3BAD1.007.792.697.79
#FFFFFF7.791.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B1
Deuteranopia (green-blind)
#0050AB
Tritanopia (blue-blind)
#45566F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5d3bad;
/* rgb */ color: rgb(93, 59, 173);
/* oklch */ color: oklch(45.7% 0.172 291.9);
Tailwind
colors: {
  custom: {
    50: '#9173c6',
    500: '#5d3bad',
    950: '#000000',
  },
}
SCSS
$custom: #5d3bad;
$custom-light: #9173c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3bad",
  "rgb": {
    "r": 93,
    "g": 59,
    "b": 173
  },
  "hsl": {
    "h": 257.895,
    "s": 49.138,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45736,
    "c": 0.17241,
    "h": 291.9
  },
  "luminance": 0.08472
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D3BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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