#5D3AA2#5D3AA2

#5D3AA2 is a dark, vivid violet. Relative luminance 0.080; OKLCH L 44.7% C 0.160 H 294.5°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#5D3AA2
RGBrgb(93, 58, 162)
HSLhsl(260, 47%, 43%)
HSVhsv(260, 64%, 64%)
CMYKcmyk(42.6%, 64.2%, 0%, 36.5%)
CIE-LABlab(33.90, 39.49, -51.03)
CIE-LCHlch(33.90, 64.53, 307.73°)
OKLaboklab(44.72% 0.0664 -0.1456)
OKLCHoklch(44.72% 0.16 294.5)
XYZxyz(12.5471, 7.9616, 35.0511)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3AA2 #7FA23A
analogous
#3A4BA2 #5D3AA2 #913AA2
triadic
#5D3AA2 #A25D3A #3AA25D
tetradic
#5D3AA2 #A23A4B #7FA23A #3AA291
square
#5D3AA2 #A23A4B #7FA23A #3AA291
split-complementary
#5D3AA2 #A2913A #4BA23A
monochromatic
#291A48 #432A75 #5D3AA2 #7B57C3 #9E84D3

Accessibility & contrast

On white

8.10
#5D3AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5D3AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3AA2
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3AA2#FFFFFF#000000##FFFFFF
##5D3AA21.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#004EA0
Tritanopia (blue-blind)
#4B5268
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5d3aa2;
/* rgb */ color: rgb(93, 58, 162);
/* oklch */ color: oklch(44.7% 0.160 294.5);
Tailwind
colors: {
  custom: {
    50: '#9072be',
    500: '#5d3aa2',
    950: '#000000',
  },
}
SCSS
$custom: #5d3aa2;
$custom-light: #9072be;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3aa2",
  "rgb": {
    "r": 93,
    "g": 58,
    "b": 162
  },
  "hsl": {
    "h": 260.192,
    "s": 47.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.44718,
    "c": 0.16005,
    "h": 294.5
  },
  "luminance": 0.07962
}

Semantic roles & 50–950 ramp

primary
#5D3AA2
secondary
#A7BD7B
accent
#D751AA
background
#F9F7FB
surface
#F1EDF7
border
#CBC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5D3AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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