#5D3AB0#5D3AB0

#5D3AB0 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.8% C 0.177 H 291.4°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#5D3AB0
RGBrgb(93, 58, 176)
HSLhsl(258, 50%, 46%)
HSVhsv(258, 67%, 69%)
CMYKcmyk(47.2%, 67%, 0%, 31%)
CIE-LABlab(34.98, 43.45, -57.66)
CIE-LCHlch(34.98, 72.20, 307.00°)
OKLaboklab(45.83% 0.0649 -0.1651)
OKLCHoklch(45.83% 0.177 291.4)
XYZxyz(13.8615, 8.4874, 41.9737)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3AB0 #8DB03A
analogous
#3A52B0 #5D3AB0 #983AB0
triadic
#5D3AB0 #B05D3A #3AB05D
tetradic
#5D3AB0 #B03A52 #8DB03A #3AB098
square
#5D3AB0 #B03A52 #8DB03A #3AB098
split-complementary
#5D3AB0 #B0983A #52B03A
monochromatic
#2C1C54 #452B82 #5D3AB0 #7E5DCA #A28BD9

Accessibility & contrast

On white

7.78
#5D3AB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5D3AB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3AB0
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3AB0#FFFFFF#000000##FFFFFF
##5D3AB01.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B4
Deuteranopia (green-blind)
#0050AE
Tritanopia (blue-blind)
#435770
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5d3ab0;
/* rgb */ color: rgb(93, 58, 176);
/* oklch */ color: oklch(45.8% 0.177 291.4);
Tailwind
colors: {
  custom: {
    50: '#9272c8',
    500: '#5d3ab0',
    950: '#000000',
  },
}
SCSS
$custom: #5d3ab0;
$custom-light: #9272c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3ab0",
  "rgb": {
    "r": 93,
    "g": 58,
    "b": 176
  },
  "hsl": {
    "h": 257.797,
    "s": 50.427,
    "l": 45.882
  },
  "oklch": {
    "l": 0.45832,
    "c": 0.1774,
    "h": 291.4
  },
  "luminance": 0.08488
}

Semantic roles & 50–950 ramp

primary
#5D3AB0
secondary
#B0C382
accent
#DA4EB0
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5D3AB0

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

Preview Lab → · Contrast checker → · Palette generator →

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