#5D3CAC#5D3CAC

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

Color values

HEX#5D3CAC
RGBrgb(93, 60, 172)
HSLhsl(258, 48%, 45%)
HSVhsv(258, 65%, 67%)
CMYKcmyk(45.9%, 65.1%, 0%, 32.5%)
CIE-LABlab(35.08, 41.20, -55.12)
CIE-LCHlch(35.08, 68.81, 306.77°)
OKLaboklab(45.81% 0.0632 -0.1576)
OKLCHoklch(45.81% 0.17 291.9)
XYZxyz(13.5744, 8.5370, 39.9543)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3CAC #8BAC3C
analogous
#3C53AC #5D3CAC #953CAC
triadic
#5D3CAC #AC5D3C #3CAC5D
tetradic
#5D3CAC #AC3C53 #8BAC3C #3CAC95
square
#5D3CAC #AC3C53 #8BAC3C #3CAC95
split-complementary
#5D3CAC #AC953C #53AC3C
monochromatic
#2C1C51 #442C7F #5D3CAC #7D5EC7 #A28CD7

Accessibility & contrast

On white

7.76
#5D3CAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D3CAC
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3CAC#FFFFFF#000000##FFFFFF
##5D3CAC1.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AF
Deuteranopia (green-blind)
#0050AA
Tritanopia (blue-blind)
#45576E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5d3cac;
/* rgb */ color: rgb(93, 60, 172);
/* oklch */ color: oklch(45.8% 0.170 291.9);
Tailwind
colors: {
  custom: {
    50: '#9174c6',
    500: '#5d3cac',
    950: '#000000',
  },
}
SCSS
$custom: #5d3cac;
$custom-light: #9174c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3cac",
  "rgb": {
    "r": 93,
    "g": 60,
    "b": 172
  },
  "hsl": {
    "h": 257.679,
    "s": 48.276,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45806,
    "c": 0.16985,
    "h": 291.9
  },
  "luminance": 0.08537
}

Semantic roles & 50–950 ramp

primary
#5D3CAC
secondary
#AFC182
accent
#D850B0
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5D3CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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