#5D3DAC#5D3DAC

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

Color values

HEX#5D3DAC
RGBrgb(93, 61, 172)
HSLhsl(257, 48%, 46%)
HSVhsv(257, 65%, 67%)
CMYKcmyk(45.9%, 64.5%, 0%, 32.5%)
CIE-LABlab(35.29, 40.63, -54.78)
CIE-LCHlch(35.29, 68.20, 306.56°)
OKLaboklab(45.96% 0.0622 -0.1566)
OKLCHoklch(45.96% 0.169 291.6)
XYZxyz(13.6273, 8.6427, 39.9719)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3DAC #8CAC3D
analogous
#3D55AC #5D3DAC #943DAC
triadic
#5D3DAC #AC5D3D #3DAC5D
tetradic
#5D3DAC #AC3D55 #8CAC3D #3DAC94
square
#5D3DAC #AC3D55 #8CAC3D #3DAC94
split-complementary
#5D3DAC #AC943D #55AC3D
monochromatic
#2C1D52 #452D7F #5D3DAC #7D60C7 #A28DD7

Accessibility & contrast

On white

7.70
#5D3DAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5D3DAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3DAC
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3DAC#FFFFFF#000000##FFFFFF
##5D3DAC1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AF
Deuteranopia (green-blind)
#0051AA
Tritanopia (blue-blind)
#45576F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5d3dac;
/* rgb */ color: rgb(93, 61, 172);
/* oklch */ color: oklch(46.0% 0.169 291.6);
Tailwind
colors: {
  custom: {
    50: '#9174c6',
    500: '#5d3dac',
    950: '#000000',
  },
}
SCSS
$custom: #5d3dac;
$custom-light: #9174c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3dac",
  "rgb": {
    "r": 93,
    "g": 61,
    "b": 172
  },
  "hsl": {
    "h": 257.297,
    "s": 47.639,
    "l": 45.686
  },
  "oklch": {
    "l": 0.45958,
    "c": 0.16852,
    "h": 291.6
  },
  "luminance": 0.08643
}

Semantic roles & 50–950 ramp

primary
#5D3DAC
secondary
#AFC184
accent
#D751B0
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5D3DAC

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

Preview Lab → · Contrast checker → · Palette generator →

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