#5D3AAA#5D3AAA

#5D3AAA is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.3% C 0.170 H 292.7°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#5D3AAA
RGBrgb(93, 58, 170)
HSLhsl(259, 49%, 45%)
HSVhsv(259, 66%, 67%)
CMYKcmyk(45.3%, 65.9%, 0%, 33.3%)
CIE-LABlab(34.51, 41.75, -54.85)
CIE-LCHlch(34.51, 68.93, 307.28°)
OKLaboklab(45.35% 0.0656 -0.1568)
OKLCHoklch(45.35% 0.17 292.7)
XYZxyz(13.2810, 8.2551, 38.9161)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3AAA #87AA3A
analogous
#3A4FAA #5D3AAA #953AAA
triadic
#5D3AAA #AA5D3A #3AAA5D
tetradic
#5D3AAA #AA3A4F #87AA3A #3AAA95
square
#5D3AAA #AA3A4F #87AA3A #3AAA95
split-complementary
#5D3AAA #AA953A #4FAA3A
monochromatic
#2B1B4F #442A7C #5D3AAA #7C5AC7 #A188D6

Accessibility & contrast

On white

7.92
#5D3AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5D3AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3AAA
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3AAA#FFFFFF#000000##FFFFFF
##5D3AAA1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AD
Deuteranopia (green-blind)
#004FA8
Tritanopia (blue-blind)
#47556D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5d3aaa;
/* rgb */ color: rgb(93, 58, 170);
/* oklch */ color: oklch(45.3% 0.170 292.7);
Tailwind
colors: {
  custom: {
    50: '#9172c4',
    500: '#5d3aaa',
    950: '#000000',
  },
}
SCSS
$custom: #5d3aaa;
$custom-light: #9172c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3aaa",
  "rgb": {
    "r": 93,
    "g": 58,
    "b": 170
  },
  "hsl": {
    "h": 258.75,
    "s": 49.123,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45347,
    "c": 0.17001,
    "h": 292.7
  },
  "luminance": 0.08256
}

Semantic roles & 50–950 ramp

primary
#5D3AAA
secondary
#ACC17F
accent
#D94FAE
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5D3AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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