#5D3AB2#5D3AB2

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

Color values

HEX#5D3AB2
RGBrgb(93, 58, 178)
HSLhsl(258, 51%, 46%)
HSVhsv(258, 67%, 70%)
CMYKcmyk(47.8%, 67.4%, 0%, 30.2%)
CIE-LABlab(35.14, 44.02, -58.59)
CIE-LCHlch(35.14, 73.29, 306.92°)
OKLaboklab(46% 0.0646 -0.1678)
OKLCHoklch(46% 0.18 291)
XYZxyz(14.0609, 8.5671, 43.0236)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3AB2 #8FB23A
analogous
#3A53B2 #5D3AB2 #993AB2
triadic
#5D3AB2 #B25D3A #3AB25D
tetradic
#5D3AB2 #B23A53 #8FB23A #3AB299
square
#5D3AB2 #B23A53 #8FB23A #3AB299
split-complementary
#5D3AB2 #B2993A #53B23A
monochromatic
#2D1C56 #452B84 #5D3AB2 #7E5FCB #A38DDA

Accessibility & contrast

On white

7.74
#5D3AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5D3AB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3AB2
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3AB2#FFFFFF#000000##FFFFFF
##5D3AB21.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#0050B0
Tritanopia (blue-blind)
#425871
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5d3ab2;
/* rgb */ color: rgb(93, 58, 178);
/* oklch */ color: oklch(46.0% 0.180 291.0);
Tailwind
colors: {
  custom: {
    50: '#9273ca',
    500: '#5d3ab2',
    950: '#000000',
  },
}
SCSS
$custom: #5d3ab2;
$custom-light: #9273ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3ab2",
  "rgb": {
    "r": 93,
    "g": 58,
    "b": 178
  },
  "hsl": {
    "h": 257.5,
    "s": 50.847,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45996,
    "c": 0.17984,
    "h": 291
  },
  "luminance": 0.08568
}

Semantic roles & 50–950 ramp

primary
#5D3AB2
secondary
#B1C483
accent
#DA4DB1
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5D3AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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