#5D3CAB#5D3CAB

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

Color values

HEX#5D3CAB
RGBrgb(93, 60, 171)
HSLhsl(258, 48%, 45%)
HSVhsv(258, 65%, 67%)
CMYKcmyk(45.6%, 64.9%, 0%, 32.9%)
CIE-LABlab(35.00, 40.91, -54.65)
CIE-LCHlch(35.00, 68.26, 306.82°)
OKLaboklab(45.73% 0.0633 -0.1562)
OKLCHoklch(45.73% 0.169 292.1)
XYZxyz(13.4787, 8.4987, 39.4504)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3CAB #8AAB3C
analogous
#3C52AB #5D3CAB #943CAB
triadic
#5D3CAB #AB5D3C #3CAB5D
tetradic
#5D3CAB #AB3C52 #8AAB3C #3CAB94
square
#5D3CAB #AB3C52 #8AAB3C #3CAB94
split-complementary
#5D3CAB #AB943C #52AB3C
monochromatic
#2C1C50 #442C7E #5D3CAB #7D5EC6 #A18BD6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D3CAB#FFFFFF#000000##FFFFFF
##5D3CAB1.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)
#0054AE
Deuteranopia (green-blind)
#0050A9
Tritanopia (blue-blind)
#46566E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5d3cab;
/* rgb */ color: rgb(93, 60, 171);
/* oklch */ color: oklch(45.7% 0.169 292.1);
Tailwind
colors: {
  custom: {
    50: '#9174c5',
    500: '#5d3cab',
    950: '#000000',
  },
}
SCSS
$custom: #5d3cab;
$custom-light: #9174c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3cab",
  "rgb": {
    "r": 93,
    "g": 60,
    "b": 171
  },
  "hsl": {
    "h": 257.838,
    "s": 48.052,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45727,
    "c": 0.1686,
    "h": 292.1
  },
  "luminance": 0.08499
}

Semantic roles & 50–950 ramp

primary
#5D3CAB
secondary
#AEC182
accent
#D850AF
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5D3CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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